home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 February / macpower199702.bin / AMUG / Programming_7 / Chipmunk Basic 3.5.0 FAT.sit / chipmunk-basic-3.5.0 ƒ / chipmunk-basic quick-ref < prev    next >
MacBinary  |  1996-09-05  |  24.5 KB  |  [TEXT/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Sep 5 00:23:36 1996, modified Thu Sep 5 00:23:36 1996, creator SimpleText, type ASCII, 24524 bytes "chipmunk-basic quick-ref" , at 0x604c 360 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% dexmagic Picasso 64 Image default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 18 63 68 69 70 6d 75 | 6e 6b 2d 62 61 73 69 63 |..chipmu|nk-basic|
|00000010| 20 71 75 69 63 6b 2d 72 | 65 66 00 00 00 00 00 00 | quick-r|ef......|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 74 74 78 | 74 01 00 00 00 00 00 00 |.TEXTttx|t.......|
|00000050| 00 00 00 00 00 5f cc 00 | 00 01 68 ae 54 06 48 ae |....._..|..h.T.H.|
|00000060| 54 06 48 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |T.H.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 da 22 00 00 |........|....."..|
|00000080| 2f 2a 0d 20 2a 20 51 75 | 69 63 6b 20 52 65 66 65 |/*. * Qu|ick Refe|
|00000090| 72 65 6e 63 65 20 61 6e | 64 20 46 41 51 20 66 6f |rence an|d FAQ fo|
|000000a0| 72 20 43 68 69 70 6d 75 | 6e 6b 20 42 61 73 69 63 |r Chipmu|nk Basic|
|000000b0| 20 2d 20 4d 61 63 4f 53 | 20 76 65 72 73 69 6f 6e | - MacOS| version|
|000000c0| 0d 20 2a 20 63 68 69 70 | 6d 75 6e 6b 2d 62 61 73 |. * chip|munk-bas|
|000000d0| 69 63 2d 33 2e 35 2e 30 | 2e 73 69 74 2e 68 71 78 |ic-3.5.0|.sit.hqx|
|000000e0| 20 2d 20 39 36 53 65 70 | 74 20 0d 20 2a 0d 20 2a | - 96Sep|t . *. *|
|000000f0| 20 43 68 69 70 6d 75 6e | 6b 20 42 61 73 69 63 20 | Chipmun|k Basic |
|00000100| 69 73 20 28 63 29 20 43 | 6f 70 79 72 69 67 68 74 |is (c) C|opyright|
|00000110| 20 31 39 39 34 2c 31 39 | 39 36 20 52 6f 6e 61 6c | 1994,19|96 Ronal|
|00000120| 64 20 48 2e 20 4e 69 63 | 68 6f 6c 73 6f 6e 2c 20 |d H. Nic|holson, |
|00000130| 4a 72 2e 0d 20 2a 20 41 | 4c 4c 20 52 49 47 48 54 |Jr.. * A|LL RIGHT|
|00000140| 53 20 52 45 53 45 52 56 | 45 44 0d 20 2a 0d 20 2a |S RESERV|ED. *. *|
|00000150| 20 54 68 69 73 20 70 72 | 6f 67 72 61 6d 20 69 73 | This pr|ogram is|
|00000160| 20 64 69 73 74 72 69 62 | 75 74 65 64 20 69 6e 20 | distrib|uted in |
|00000170| 74 68 65 20 68 6f 70 65 | 20 74 68 61 74 20 69 74 |the hope| that it|
|00000180| 20 77 69 6c 6c 20 62 65 | 20 75 73 65 66 75 6c 2c | will be| useful,|
|00000190| 20 62 75 74 0d 20 2a 20 | 57 49 54 48 4f 55 54 20 | but. * |WITHOUT |
|000001a0| 41 4e 59 20 57 41 52 52 | 41 4e 54 59 20 4f 46 20 |ANY WARR|ANTY OF |
|000001b0| 41 4e 59 20 4b 49 4e 44 | 3b 20 6e 6f 74 20 65 76 |ANY KIND|; not ev|
|000001c0| 65 6e 20 74 68 65 20 69 | 6d 70 6c 69 65 64 20 77 |en the i|mplied w|
|000001d0| 61 72 72 61 6e 74 79 20 | 6f 66 0d 20 2a 20 4d 45 |arranty |of. * ME|
|000001e0| 52 43 48 41 4e 54 41 42 | 49 4c 49 54 59 20 6f 72 |RCHANTAB|ILITY or|
|000001f0| 20 46 49 54 4e 45 53 53 | 20 46 4f 52 20 41 20 50 | FITNESS| FOR A P|
|00000200| 41 52 54 49 43 55 4c 41 | 52 20 50 55 52 50 4f 53 |ARTICULA|R PURPOS|
|00000210| 45 2e 0d 0d 55 70 64 61 | 74 65 73 20 74 6f 20 74 |E...Upda|tes to t|
|00000220| 68 69 73 20 64 6f 63 75 | 6d 65 6e 74 20 6d 61 79 |his docu|ment may|
|00000230| 20 62 65 20 66 6f 75 6e | 64 20 6f 6e 20 74 68 65 | be foun|d on the|
|00000240| 20 57 57 57 65 62 20 61 | 74 3a 0d 20 20 68 74 74 | WWWeb a|t:. htt|
|00000250| 70 3a 2f 2f 77 77 77 2e | 6e 69 63 68 6f 6c 73 6f |p://www.|nicholso|
|00000260| 6e 2e 63 6f 6d 2f 72 68 | 6e 2f 62 61 73 69 63 2f |n.com/rh|n/basic/|
|00000270| 20 20 0d 0d 2d 2d 2d 0d | 51 75 69 63 6b 20 52 65 | ..---.|Quick Re|
|00000280| 66 65 72 65 6e 63 65 20 | 66 6f 72 20 43 68 69 70 |ference |for Chip|
|00000290| 6d 75 6e 6b 20 42 61 73 | 69 63 0d 70 6f 72 74 65 |munk Bas|ic.porte|
|000002a0| 64 20 74 6f 20 74 68 65 | 20 4d 61 63 4f 53 20 62 |d to the| MacOS b|
|000002b0| 79 20 52 6f 6e 61 6c 64 | 20 48 2e 20 4e 69 63 68 |y Ronald| H. Nich|
|000002c0| 6f 6c 73 6f 6e 2c 20 4a | 72 2e 09 20 20 72 68 6e |olson, J|r.. rhn|
|000002d0| 40 6e 69 63 68 6f 6c 73 | 6f 6e 2e 63 6f 6d 20 0d |@nichols|on.com .|
|000002e0| 0d 53 75 70 70 6f 72 74 | 65 64 20 6f 70 65 72 61 |.Support|ed opera|
|000002f0| 74 6f 72 73 2c 20 66 75 | 6e 63 74 69 6f 6e 73 20 |tors, fu|nctions |
|00000300| 61 6e 64 20 73 74 61 74 | 65 6d 65 6e 74 73 20 28 |and stat|ements (|
|00000310| 72 65 73 65 72 76 65 64 | 20 77 6f 72 64 73 29 3a |reserved| words):|
|00000320| 0d 0d 20 20 20 20 20 20 | 20 20 2b 20 2d 20 2a 20 |.. | + - * |
|00000330| 2f 20 5e 20 6d 6f 64 20 | 20 61 6e 64 20 6f 72 20 |/ ^ mod | and or |
|00000340| 78 6f 72 20 6e 6f 74 20 | 20 3e 20 3c 20 3e 3d 20 |xor not | > < >= |
|00000350| 3c 3d 20 3c 3e 20 3d 0d | 20 20 20 20 20 20 20 20 |<= <> =.| |
|00000360| 73 71 72 28 29 20 6c 6f | 67 28 29 20 65 78 70 28 |sqr() lo|g() exp(|
|00000370| 29 20 73 69 6e 28 29 20 | 63 6f 73 28 29 20 74 61 |) sin() |cos() ta|
|00000380| 6e 28 29 20 61 74 6e 28 | 29 20 20 70 69 0d 20 20 |n() atn(|) pi. |
|00000390| 20 20 20 20 20 20 61 62 | 73 28 29 20 73 67 6e 28 | ab|s() sgn(|
|000003a0| 29 20 69 6e 74 28 29 20 | 72 6e 64 28 29 20 70 65 |) int() |rnd() pe|
|000003b0| 65 6b 28 29 20 76 61 6c | 28 29 20 61 73 63 28 29 |ek() val|() asc()|
|000003c0| 20 6c 65 6e 28 29 0d 20 | 20 20 20 20 20 20 20 6d | len(). | m|
|000003d0| 69 64 24 28 29 20 72 69 | 67 68 74 24 28 29 20 6c |id$() ri|ght$() l|
|000003e0| 65 66 74 24 28 29 20 73 | 74 72 24 28 29 20 63 68 |eft$() s|tr$() ch|
|000003f0| 72 24 28 29 20 20 6c 63 | 61 73 65 24 28 29 20 75 |r$() lc|ase$() u|
|00000400| 63 61 73 65 24 28 29 0d | 20 20 20 20 20 20 20 20 |case$().| |
|00000410| 67 6f 74 6f 20 20 69 66 | 20 74 68 65 6e 20 65 6c |goto if| then el|
|00000420| 73 65 20 65 6e 64 69 66 | 20 20 67 6f 73 75 62 20 |se endif| gosub |
|00000430| 72 65 74 75 72 6e 0d 20 | 20 20 20 20 20 20 20 66 |return. | f|
|00000440| 6f 72 20 74 6f 20 73 74 | 65 70 20 6e 65 78 74 20 |or to st|ep next |
|00000450| 20 77 68 69 6c 65 20 77 | 65 6e 64 20 20 73 65 6c | while w|end sel|
|00000460| 65 63 74 20 63 61 73 65 | 0d 20 20 20 20 20 20 20 |ect case|. |
|00000470| 20 72 65 6d 20 20 6c 65 | 74 20 20 64 69 6d 20 65 | rem le|t dim e|
|00000480| 72 61 73 65 20 20 64 61 | 74 61 20 72 65 61 64 20 |rase da|ta read |
|00000490| 72 65 73 74 6f 72 65 20 | 20 20 66 69 65 6c 64 24 |restore | field$|
|000004a0| 28 29 0d 20 20 20 20 20 | 20 20 20 69 6e 70 75 74 |(). | input|
|000004b0| 20 70 72 69 6e 74 20 6f | 70 65 6e 20 66 6f 72 20 | print o|pen for |
|000004c0| 6f 75 74 70 75 74 20 61 | 70 70 65 6e 64 20 61 73 |output a|ppend as|
|000004d0| 20 63 6c 6f 73 65 23 20 | 6c 6f 61 64 20 73 61 76 | close# |load sav|
|000004e0| 65 0d 20 20 20 20 20 20 | 20 20 72 61 6e 64 6f 6d |e. | random|
|000004f0| 20 6c 6f 66 20 6c 6f 63 | 20 67 65 74 20 70 75 74 | lof loc| get put|
|00000500| 20 20 20 0d 20 20 20 20 | 20 20 20 20 69 6e 6b 65 | . | inke|
|00000510| 79 24 20 20 69 6e 70 75 | 74 24 20 65 6f 66 28 29 |y$ inpu|t$ eof()|
|00000520| 20 20 66 69 6c 65 73 20 | 20 66 67 65 74 62 79 74 | files | fgetbyt|
|00000530| 65 23 20 66 73 65 65 6b | 23 20 66 70 75 74 62 79 |e# fseek|# fputby|
|00000540| 74 65 0d 20 20 20 20 20 | 20 20 20 72 75 6e 20 73 |te. | run s|
|00000550| 74 6f 70 20 65 6e 64 20 | 65 78 69 74 20 71 75 69 |top end |exit qui|
|00000560| 74 20 63 6f 6e 74 20 20 | 72 65 6e 75 6d 20 20 6e |t cont |renum n|
|00000570| 65 77 20 63 6c 65 61 72 | 0d 20 20 20 20 20 20 20 |ew clear|. |
|00000580| 20 64 61 74 65 24 20 74 | 69 6d 65 24 20 74 69 6d | date$ t|ime$ tim|
|00000590| 65 72 20 20 73 6f 75 6e | 64 20 6d 6f 72 73 65 20 |er soun|d morse |
|000005a0| 73 61 79 20 20 64 6f 65 | 76 65 6e 74 73 20 69 6e |say doe|vents in|
|000005b0| 70 75 74 62 6f 78 0d 20 | 20 20 20 20 20 20 20 68 |putbox. | h|
|000005c0| 6f 6d 65 20 63 6c 73 20 | 67 6f 74 6f 78 79 20 68 |ome cls |gotoxy h|
|000005d0| 74 61 62 20 76 74 61 62 | 20 70 6f 73 28 29 20 20 |tab vtab| pos() |
|000005e0| 6d 65 6e 75 0d 20 20 20 | 20 20 20 20 20 67 72 61 |menu. | gra|
|000005f0| 70 68 69 63 73 20 73 70 | 72 69 74 65 20 70 73 65 |phics sp|rite pse|
|00000600| 74 20 6d 6f 76 65 74 6f | 20 6c 69 6e 65 74 6f 20 |t moveto| lineto |
|00000610| 77 69 6e 64 6f 77 20 73 | 63 72 6e 20 6d 6f 75 73 |window s|crn mous|
|00000620| 65 28 29 0d 20 20 20 20 | 20 20 20 20 76 61 72 70 |e(). | varp|
|00000630| 74 72 20 70 65 65 6b 28 | 29 20 70 6f 6b 65 20 66 |tr peek(|) poke f|
|00000640| 72 65 20 70 75 73 68 28 | 29 20 70 6f 70 20 20 69 |re push(|) pop i|
|00000650| 73 61 72 72 61 79 20 20 | 6d 61 74 0d 20 20 20 20 |sarray |mat. |
|00000660| 20 20 20 20 73 75 62 20 | 63 61 6c 6c 20 75 73 72 | sub |call usr|
|00000670| 20 20 64 65 66 20 66 6e | 20 20 65 78 65 63 0d 20 | def fn| exec. |
|00000680| 20 20 20 20 20 20 20 74 | 79 70 65 20 63 6c 61 73 | t|ype clas|
|00000690| 73 20 65 78 74 65 6e 64 | 73 20 20 73 74 72 69 6e |s extend|s strin|
|000006a0| 67 20 69 6e 74 65 67 65 | 72 20 73 69 6e 67 6c 65 |g intege|r single|
|000006b0| 20 64 6f 75 62 6c 65 20 | 6c 6f 6e 67 69 6e 74 0d | double |longint.|
|000006c0| 20 20 20 20 20 20 20 20 | 61 73 69 6e 20 61 63 6f | |asin aco|
|000006d0| 73 20 73 69 6e 68 20 63 | 6f 73 68 20 74 61 6e 68 |s sinh c|osh tanh|
|000006e0| 20 6c 6f 67 31 30 20 66 | 6c 6f 6f 72 20 74 72 75 | log10 f|loor tru|
|000006f0| 65 20 66 61 6c 73 65 20 | 75 62 6f 75 6e 64 0d 0d |e false |ubound..|
|00000700| 0d 2d 20 54 68 65 20 22 | 62 61 73 69 63 2e 6d 61 |.- The "|basic.ma|
|00000710| 6e 22 20 66 69 6c 65 20 | 69 73 20 69 6e 63 6c 75 |n" file |is inclu|
|00000720| 64 65 64 20 77 69 74 68 | 20 74 68 65 20 64 69 73 |ded with| the dis|
|00000730| 74 72 69 62 75 74 69 6f | 6e 2e 20 20 49 74 0d 20 |tributio|n. It. |
|00000740| 20 64 65 73 63 72 69 62 | 65 73 20 74 68 65 20 61 | describ|es the a|
|00000750| 62 6f 76 65 20 66 75 6e | 63 74 69 6f 6e 73 20 61 |bove fun|ctions a|
|00000760| 6e 64 20 73 74 61 74 65 | 6d 65 6e 74 73 20 69 6e |nd state|ments in|
|00000770| 20 6d 6f 72 65 20 64 65 | 74 61 69 6c 2e 0d 20 20 | more de|tail.. |
|00000780| 0d 2d 20 4c 69 6e 65 20 | 6e 75 6d 62 65 72 73 20 |.- Line |numbers |
|00000790| 61 72 65 20 72 65 71 75 | 69 72 65 64 20 66 6f 72 |are requ|ired for|
|000007a0| 20 63 6f 6e 73 6f 6c 65 | 20 69 6e 70 75 74 2e 0d | console| input..|
|000007b0| 2d 20 54 68 65 20 69 6e | 74 65 72 70 72 65 74 65 |- The in|terprete|
|000007c0| 72 20 69 6e 63 6c 75 64 | 65 73 20 61 6e 20 64 75 |r includ|es an du|
|000007d0| 6d 62 20 6f 6c 64 20 66 | 61 73 68 69 6f 6e 65 64 |mb old f|ashioned|
|000007e0| 20 6c 69 6e 65 20 6e 75 | 6d 62 65 72 20 62 61 73 | line nu|mber bas|
|000007f0| 65 64 0d 20 20 65 64 69 | 74 6f 72 2e 20 20 28 45 |ed. edi|tor. (E|
|00000800| 6e 74 65 72 20 61 20 6c | 69 6e 65 3b 20 64 65 6c |nter a l|ine; del|
|00000810| 65 74 65 20 61 20 6c 69 | 6e 65 3b 20 65 64 69 74 |ete a li|ne; edit|
|00000820| 20 6f 6e 65 20 6c 69 6e | 65 20 61 74 20 61 20 74 | one lin|e at a t|
|00000830| 69 6d 65 29 2e 0d 2d 20 | 54 68 65 20 76 61 72 69 |ime)..- |The vari|
|00000840| 61 62 6c 65 20 74 79 70 | 65 73 20 61 72 65 20 66 |able typ|es are f|
|00000850| 6c 6f 61 74 20 64 6f 75 | 62 6c 65 73 20 61 6e 64 |loat dou|bles and|
|00000860| 20 73 74 72 69 6e 67 73 | 20 77 69 74 68 20 61 20 | strings| with a |
|00000870| 6d 61 78 69 6d 75 6d 0d | 20 20 6c 65 6e 67 74 68 |maximum.| length|
|00000880| 20 6f 66 20 32 35 34 20 | 63 68 61 72 61 63 74 65 | of 254 |characte|
|00000890| 72 73 2e 20 20 56 61 72 | 69 61 62 6c 65 20 6e 61 |rs. Var|iable na|
|000008a0| 6d 65 73 20 63 61 6e 20 | 62 65 20 75 70 20 74 6f |mes can |be up to|
|000008b0| 20 33 31 20 63 68 61 72 | 61 63 74 65 72 73 0d 20 | 31 char|acters. |
|000008c0| 20 69 6e 20 6c 65 6e 67 | 74 68 20 61 6e 64 20 61 | in leng|th and a|
|000008d0| 72 65 20 63 61 73 65 20 | 69 6e 73 65 6e 73 69 74 |re case |insensit|
|000008e0| 69 76 65 2e 0d 2d 20 4d | 61 74 68 20 69 73 20 64 |ive..- M|ath is d|
|000008f0| 6f 6e 65 20 75 73 69 6e | 67 20 74 68 65 20 62 75 |one usin|g the bu|
|00000900| 69 6c 74 2d 69 6e 20 64 | 6f 75 62 6c 65 20 70 72 |ilt-in d|ouble pr|
|00000910| 65 63 69 73 69 6f 6e 20 | 49 45 45 45 20 6d 61 74 |ecision |IEEE mat|
|00000920| 68 2e 0d 20 20 41 6c 6c | 20 74 72 69 67 6f 6e 6f |h.. All| trigono|
|00000930| 6d 65 74 72 69 63 20 66 | 75 6e 63 74 69 6f 6e 73 |metric f|unctions|
|00000940| 20 65 78 70 72 65 73 73 | 20 61 6e 67 6c 65 73 20 | express| angles |
|00000950| 69 6e 20 72 61 64 69 61 | 6e 73 2e 0d 0d 2d 2d 2d |in radia|ns...---|
|00000960| 0d 53 6f 6d 65 20 53 69 | 6d 70 6c 65 20 45 78 61 |.Some Si|mple Exa|
|00000970| 6d 70 6c 65 73 3a 0d 0d | 20 20 66 6f 72 20 69 3d |mples:..| for i=|
|00000980| 31 20 74 6f 20 31 30 20 | 3a 20 70 72 69 6e 74 20 |1 to 10 |: print |
|00000990| 69 20 3a 20 6e 65 78 74 | 20 69 0d 0d 20 20 63 24 |i : next| i.. c$|
|000009a0| 20 3d 20 61 24 20 2b 20 | 62 24 20 20 20 20 20 20 | = a$ + |b$ |
|000009b0| 20 20 20 20 20 20 20 20 | 3a 20 72 65 6d 20 73 74 | |: rem st|
|000009c0| 72 69 6e 67 20 63 6f 6e | 63 61 74 65 6e 61 74 69 |ring con|catenati|
|000009d0| 6f 6e 0d 20 20 61 24 20 | 3d 20 69 6e 6b 65 79 24 |on. a$ |= inkey$|
|000009e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3a | | :|
|000009f0| 20 72 65 6d 20 69 6e 6b | 65 79 24 20 69 73 20 6e | rem ink|ey$ is n|
|00000a00| 6f 6e 2d 62 6c 6f 63 6b | 69 6e 67 20 0d 20 20 0d |on-block|ing . .|
|00000a10| 20 20 6c 6f 61 64 20 22 | 73 69 65 76 65 2e 62 61 | load "|sieve.ba|
|00000a20| 73 22 20 20 20 20 20 20 | 20 20 20 20 3a 20 72 65 |s" | : re|
|00000a30| 6d 20 6c 6f 61 64 20 54 | 45 58 54 20 66 69 6c 65 |m load T|EXT file|
|00000a40| 20 61 73 20 61 20 42 61 | 73 69 63 20 70 72 6f 67 | as a Ba|sic prog|
|00000a50| 72 61 6d 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ram. | |
|00000a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a70| 3a 20 72 65 6d 20 66 69 | 6c 65 20 6e 61 6d 65 73 |: rem fi|le names|
|00000a80| 20 73 68 6f 75 6c 64 20 | 68 61 76 65 20 2e 62 61 | should |have .ba|
|00000a90| 73 20 65 78 74 65 6e 73 | 69 6f 6e 0d 20 20 0d 20 |s extens|ion. . |
|00000aa0| 20 6f 70 65 6e 20 22 66 | 69 6c 65 6e 61 6d 65 22 | open "f|ilename"|
|00000ab0| 20 66 6f 72 20 6f 75 74 | 70 75 74 20 61 73 20 23 | for out|put as #|
|00000ac0| 31 20 3a 20 70 72 69 6e | 74 20 23 31 2c 20 22 68 |1 : prin|t #1, "h|
|00000ad0| 65 6c 6c 6f 20 77 6f 72 | 6c 64 22 20 3a 20 63 6c |ello wor|ld" : cl|
|00000ae0| 6f 73 65 20 23 31 20 0d | 20 20 0d 20 20 67 72 61 |ose #1 .| . gra|
|00000af0| 70 68 69 63 73 20 30 20 | 20 3a 20 6d 6f 76 65 74 |phics 0 | : movet|
|00000b00| 6f 20 31 30 2c 31 30 20 | 3a 20 6c 69 6e 65 74 6f |o 10,10 |: lineto|
|00000b10| 20 31 31 30 2c 38 30 09 | 3a 20 72 65 6d 20 64 72 | 110,80.|: rem dr|
|00000b20| 61 77 20 61 20 6c 69 6e | 65 0d 20 20 0d 2d 2d 2d |aw a lin|e. .---|
|00000b30| 0d 46 72 65 71 75 65 6e | 74 6c 79 20 41 73 6b 65 |.Frequen|tly Aske|
|00000b40| 64 20 51 75 65 73 74 69 | 6f 6e 73 3a 0d 0d 51 3a |d Questi|ons:..Q:|
|00000b50| 20 49 73 20 74 68 65 72 | 65 20 6d 6f 72 65 20 64 | Is ther|e more d|
|00000b60| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 6f 6e 20 |ocumenta|tion on |
|00000b70| 6c 65 61 72 6e 69 6e 67 | 20 68 6f 77 20 74 6f 20 |learning| how to |
|00000b80| 70 72 6f 67 72 61 6d 20 | 69 6e 20 74 68 65 0d 20 |program |in the. |
|00000b90| 20 20 42 41 53 49 43 20 | 6c 61 6e 67 75 61 67 65 | BASIC |language|
|00000ba0| 3f 0d 41 3a 20 54 68 65 | 20 6c 61 6e 67 75 61 67 |?.A: The| languag|
|00000bb0| 65 20 69 73 20 6d 6f 73 | 74 6c 79 20 63 6f 6d 70 |e is mos|tly comp|
|00000bc0| 61 74 69 62 6c 65 20 77 | 69 74 68 20 62 6f 6f 6b |atible w|ith book|
|00000bd0| 73 20 6f 6e 20 70 72 6f | 67 72 61 6d 6d 69 6e 67 |s on pro|gramming|
|00000be0| 20 69 6e 20 74 68 65 0d | 20 20 20 42 41 53 49 43 | in the.| BASIC|
|00000bf0| 20 6c 61 6e 67 75 61 67 | 65 20 74 68 61 74 20 77 | languag|e that w|
|00000c00| 65 72 65 20 70 75 62 6c | 69 73 68 65 64 20 62 65 |ere publ|ished be|
|00000c10| 74 77 65 65 6e 20 31 39 | 37 38 20 61 6e 64 20 31 |tween 19|78 and 1|
|00000c20| 39 38 38 2e 20 20 53 69 | 6e 63 65 20 74 68 65 73 |988. Si|nce thes|
|00000c30| 65 0d 20 20 20 61 72 65 | 20 6d 6f 73 74 6c 79 20 |e. are| mostly |
|00000c40| 6f 75 74 20 6f 66 20 70 | 72 69 6e 74 2c 20 79 6f |out of p|rint, yo|
|00000c50| 75 72 20 62 65 73 74 20 | 62 65 74 20 69 73 20 74 |ur best |bet is t|
|00000c60| 6f 20 74 72 79 20 79 6f | 75 72 20 6c 6f 63 61 6c |o try yo|ur local|
|00000c70| 20 70 75 62 6c 69 63 0d | 20 20 20 6c 69 62 72 61 | public.| libra|
|00000c80| 72 79 2e 0d 20 20 20 0d | 20 20 20 41 6c 73 6f 2c |ry.. .| Also,|
|00000c90| 20 74 68 65 72 65 20 69 | 73 20 61 20 73 68 6f 72 | there i|s a shor|
|00000ca0| 74 20 74 75 74 6f 72 69 | 61 6c 20 6f 6e 20 74 68 |t tutori|al on th|
|00000cb0| 65 20 43 68 69 70 6d 75 | 6e 6b 20 42 61 73 69 63 |e Chipmu|nk Basic|
|00000cc0| 20 77 65 62 20 70 61 67 | 65 3a 0d 20 20 20 20 20 | web pag|e:. |
|00000cd0| 20 20 20 68 74 74 70 3a | 2f 2f 77 77 77 2e 6e 69 | http:|//www.ni|
|00000ce0| 63 68 6f 6c 73 6f 6e 2e | 63 6f 6d 2f 72 68 6e 2f |cholson.|com/rhn/|
|00000cf0| 62 61 73 69 63 2f 0d 0d | 51 3a 20 57 68 79 20 77 |basic/..|Q: Why w|
|00000d00| 6f 6e 27 74 20 74 68 69 | 73 20 4d 75 6d 62 6c 65 |on't thi|s Mumble|
|00000d10| 73 6f 66 74 20 51 75 69 | 63 6b 42 61 73 69 63 20 |soft Qui|ckBasic |
|00000d20| 70 72 6f 67 72 61 6d 20 | 72 75 6e 3f 20 2e 2e 2e |program |run? ...|
|00000d30| 0d 41 3a 20 43 68 69 70 | 6d 75 6e 6b 20 42 61 73 |.A: Chip|munk Bas|
|00000d40| 69 63 20 77 61 73 20 6e | 65 76 65 72 20 69 6e 74 |ic was n|ever int|
|00000d50| 65 6e 64 65 64 20 74 6f | 20 62 65 20 65 78 61 63 |ended to| be exac|
|00000d60| 74 6c 79 20 63 6f 6d 70 | 61 74 69 62 6c 65 20 77 |tly comp|atible w|
|00000d70| 69 74 68 20 61 6e 79 0d | 20 20 20 6f 74 68 65 72 |ith any.| other|
|00000d80| 20 63 6f 6d 6d 65 72 63 | 69 61 6c 20 42 41 53 49 | commerc|ial BASI|
|00000d90| 43 20 6c 61 6e 67 75 61 | 67 65 20 70 72 6f 64 75 |C langua|ge produ|
|00000da0| 63 74 2e 20 20 49 74 20 | 64 6f 65 73 20 69 6e 63 |ct. It |does inc|
|00000db0| 6c 75 64 65 20 6d 6f 73 | 74 20 6f 66 20 74 68 65 |lude mos|t of the|
|00000dc0| 0d 20 20 20 66 65 61 74 | 75 72 65 73 20 6f 66 20 |. feat|ures of |
|00000dd0| 41 4e 53 49 20 6d 69 6e | 69 6d 61 6c 20 42 41 53 |ANSI min|imal BAS|
|00000de0| 49 43 20 6c 61 6e 67 75 | 61 67 65 20 64 65 66 69 |IC langu|age defi|
|00000df0| 6e 69 74 69 6f 6e 2e 20 | 20 4d 61 6e 79 20 42 41 |nition. | Many BA|
|00000e00| 53 49 43 0d 20 20 20 70 | 72 6f 67 72 61 6d 73 20 |SIC. p|rograms |
|00000e10| 74 68 61 74 20 61 72 65 | 20 73 61 76 65 64 20 61 |that are| saved a|
|00000e20| 73 20 41 53 43 49 49 20 | 74 65 78 74 20 66 69 6c |s ASCII |text fil|
|00000e30| 65 73 2c 20 61 6e 64 20 | 74 68 61 74 20 64 6f 6e |es, and |that don|
|00000e40| 27 74 20 75 73 65 20 61 | 6e 79 0d 20 20 20 73 70 |'t use a|ny. sp|
|00000e50| 65 63 69 61 6c 20 66 65 | 61 74 75 72 65 73 20 6f |ecial fe|atures o|
|00000e60| 66 20 61 20 70 61 72 74 | 69 63 75 6c 61 72 20 63 |f a part|icular c|
|00000e70| 6f 6d 70 75 74 65 72 20 | 4f 53 2c 20 63 61 6e 20 |omputer |OS, can |
|00000e80| 62 65 20 65 61 73 69 6c | 79 20 70 6f 72 74 65 64 |be easil|y ported|
|00000e90| 0d 20 20 20 74 6f 20 43 | 68 69 70 6d 75 6e 6b 20 |. to C|hipmunk |
|00000ea0| 42 61 73 69 63 2e 0d 20 | 20 20 0d 51 3a 20 49 73 |Basic.. | .Q: Is|
|00000eb0| 20 74 68 65 72 65 20 61 | 6e 79 20 77 61 79 20 74 | there a|ny way t|
|00000ec0| 6f 20 72 65 64 69 72 65 | 63 74 20 70 72 69 6e 74 |o redire|ct print|
|00000ed0| 20 73 74 61 74 65 6d 65 | 6e 74 73 20 74 6f 20 61 | stateme|nts to a|
|00000ee0| 20 6c 69 6e 65 20 70 72 | 69 6e 74 65 72 3f 0d 41 | line pr|inter?.A|
|00000ef0| 3a 20 4e 6f 2c 20 74 68 | 65 72 65 20 69 73 20 6e |: No, th|ere is n|
|00000f00| 6f 20 77 61 79 20 74 6f | 20 6d 61 6b 65 20 74 68 |o way to| make th|
|00000f10| 69 73 20 77 6f 72 6b 20 | 77 69 74 68 20 63 75 72 |is work |with cur|
|00000f20| 72 65 6e 74 20 4d 61 63 | 4f 53 20 70 72 69 6e 74 |rent Mac|OS print|
|00000f30| 65 72 0d 20 20 20 64 72 | 69 76 65 72 73 2e 20 49 |er. dr|ivers. I|
|00000f40| 20 72 65 63 6f 6d 6d 65 | 6e 64 20 70 72 69 6e 74 | recomme|nd print|
|00000f50| 69 6e 67 20 74 6f 20 61 | 20 66 69 6c 65 2c 20 61 |ing to a| file, a|
|00000f60| 6e 64 20 74 68 65 6e 20 | 75 73 69 6e 67 20 53 69 |nd then |using Si|
|00000f70| 6d 70 6c 65 54 65 78 74 | 0d 20 20 20 74 6f 20 70 |mpleText|. to p|
|00000f80| 72 69 6e 74 20 74 68 65 | 20 66 69 6c 65 2e 0d 0d |rint the| file...|
|00000f90| 20 20 20 44 65 70 65 6e | 64 69 6e 67 20 6f 6e 20 | Depen|ding on |
|00000fa0| 77 68 61 74 20 6b 69 6e | 64 20 6f 66 20 70 72 69 |what kin|d of pri|
|00000fb0| 6e 74 65 72 20 79 6f 75 | 20 68 61 76 65 2c 20 74 |nter you| have, t|
|00000fc0| 68 65 20 63 6f 6d 6d 61 | 6e 64 0d 20 20 20 20 20 |he comma|nd. |
|00000fd0| 20 20 20 20 63 61 6c 6c | 20 22 70 72 69 6e 74 54 | call| "printT|
|00000fe0| 65 78 74 22 0d 20 20 20 | 6d 69 67 68 74 20 73 65 |ext". |might se|
|00000ff0| 6e 64 20 74 68 65 20 6c | 61 73 74 20 36 36 20 6c |nd the l|ast 66 l|
|00001000| 69 6e 65 73 20 6f 66 20 | 74 65 78 74 20 66 72 6f |ines of |text fro|
|00001010| 6d 20 74 68 65 20 63 6f | 6e 73 6f 6c 65 20 77 69 |m the co|nsole wi|
|00001020| 6e 64 6f 77 20 74 6f 20 | 79 6f 75 72 0d 20 20 20 |ndow to |your. |
|00001030| 70 72 69 6e 74 65 72 20 | 28 55 53 20 6c 65 74 74 |printer |(US lett|
|00001040| 65 72 20 73 69 7a 65 20 | 6f 6e 6c 79 2e 29 0d 0d |er size |only.)..|
|00001050| 51 3a 20 57 68 79 20 63 | 61 6e 27 74 20 49 20 6c |Q: Why c|an't I l|
|00001060| 6f 61 64 20 61 20 74 65 | 78 74 20 66 69 6c 65 20 |oad a te|xt file |
|00001070| 75 73 69 6e 67 20 74 68 | 65 20 22 4f 70 65 6e 22 |using th|e "Open"|
|00001080| 20 6d 65 6e 75 3f 0d 41 | 3a 20 43 68 69 70 6d 75 | menu?.A|: Chipmu|
|00001090| 6e 6b 20 42 61 73 69 63 | 20 72 65 71 75 69 72 65 |nk Basic| require|
|000010a0| 73 20 74 68 61 74 20 42 | 61 73 69 63 20 70 72 6f |s that B|asic pro|
|000010b0| 67 72 61 6d 20 66 69 6c | 65 20 6e 61 6d 65 73 20 |gram fil|e names |
|000010c0| 65 6e 64 20 77 69 74 68 | 20 61 0d 20 20 20 22 2e |end with| a. ".|
|000010d0| 62 61 73 22 20 73 75 66 | 66 69 78 2e 20 48 6f 77 |bas" suf|fix. How|
|000010e0| 65 76 65 72 2c 20 69 66 | 20 79 6f 75 20 68 6f 6c |ever, if| you hol|
|000010f0| 64 20 64 6f 77 6e 20 74 | 68 65 20 6f 70 74 69 6f |d down t|he optio|
|00001100| 6e 20 6b 65 79 2c 20 43 | 68 69 70 6d 75 6e 6b 0d |n key, C|hipmunk.|
|00001110| 20 20 20 42 61 73 69 63 | 20 77 69 6c 6c 20 74 72 | Basic| will tr|
|00001120| 79 20 74 6f 20 6f 70 65 | 6e 20 61 6e 79 20 54 45 |y to ope|n any TE|
|00001130| 58 54 20 66 69 6c 65 2e | 0d 0d 51 3a 20 48 6f 77 |XT file.|..Q: How|
|00001140| 20 64 6f 20 49 20 74 61 | 6c 6b 20 74 6f 20 74 68 | do I ta|lk to th|
|00001150| 65 20 73 65 72 69 61 6c | 20 70 6f 72 74 73 20 75 |e serial| ports u|
|00001160| 73 69 6e 67 20 43 68 69 | 70 6d 75 6e 6b 20 42 61 |sing Chi|pmunk Ba|
|00001170| 73 69 63 3f 0d 41 3a 20 | 43 68 69 70 6d 75 6e 6b |sic?.A: |Chipmunk|
|00001180| 20 42 61 73 69 63 20 72 | 65 71 75 69 72 65 73 20 | Basic r|equires |
|00001190| 74 68 61 74 20 74 68 65 | 20 43 6f 6d 6d 75 6e 69 |that the| Communi|
|000011a0| 63 61 74 69 6f 6e 73 20 | 54 6f 6f 6c 42 6f 78 20 |cations |ToolBox |
|000011b0| 22 53 65 72 69 61 6c 20 | 54 6f 6f 6c 22 0d 20 20 |"Serial |Tool". |
|000011c0| 20 62 65 20 69 6e 73 74 | 61 6c 6c 65 64 20 69 6e | be inst|alled in|
|000011d0| 20 74 68 65 20 45 78 74 | 65 6e 73 69 6f 6e 73 20 | the Ext|ensions |
|000011e0| 66 6f 6c 64 65 72 20 69 | 6e 20 79 6f 75 72 20 53 |folder i|n your S|
|000011f0| 79 73 74 65 6d 20 46 6f | 6c 64 65 72 2e 20 20 46 |ystem Fo|lder. F|
|00001200| 69 72 73 74 0d 20 20 20 | 6f 70 65 6e 20 22 43 4f |irst. |open "CO|
|00001210| 4d 31 3a 22 20 66 6f 72 | 20 69 6e 70 75 74 2c 20 |M1:" for| input, |
|00001220| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 6f 70 65 6e |followed| by open|
|00001230| 69 6e 67 20 22 43 4f 4d | 31 3a 22 20 66 6f 72 20 |ing "COM|1:" for |
|00001240| 6f 75 74 70 75 74 2e 0d | 20 20 20 54 68 65 20 65 |output..| The e|
|00001250| 72 72 6f 72 73 74 61 74 | 75 73 24 20 73 74 72 69 |rrorstat|us$ stri|
|00001260| 6e 67 20 76 61 72 69 61 | 62 6c 65 20 77 69 6c 6c |ng varia|ble will|
|00001270| 20 72 65 74 75 72 6e 20 | 61 20 73 74 72 69 6e 67 | return |a string|
|00001280| 20 79 6f 75 20 63 61 6e | 20 75 73 65 0d 20 20 20 | you can| use. |
|00001290| 69 6e 73 74 65 61 64 20 | 6f 66 20 22 43 4f 4d 31 |instead |of "COM1|
|000012a0| 3a 22 20 77 68 65 6e 20 | 79 6f 75 20 64 6f 6e 27 |:" when |you don'|
|000012b0| 74 20 77 61 6e 74 20 74 | 68 65 20 43 54 42 20 73 |t want t|he CTB s|
|000012c0| 65 74 75 70 20 64 69 61 | 6c 6f 67 20 62 6f 78 2e |etup dia|log box.|
|000012d0| 0d 20 20 20 54 72 79 20 | 74 68 65 20 66 6f 6c 6c |. Try |the foll|
|000012e0| 6f 77 69 6e 67 20 73 6e | 69 70 70 65 74 3a 0d 20 |owing sn|ippet:. |
|000012f0| 20 20 0d 20 20 20 20 31 | 30 30 20 72 65 6d 20 20 | . 1|00 rem |
|00001300| 20 2a 2a 2a 20 20 55 73 | 69 6e 67 20 74 68 65 20 | *** Us|ing the |
|00001310| 43 54 42 20 73 65 72 69 | 61 6c 20 70 6f 72 74 73 |CTB seri|al ports|
|00001320| 20 20 2a 2a 2a 0d 20 20 | 20 20 31 31 30 20 6f 6e | ***. | 110 on|
|00001330| 20 65 72 72 6f 72 20 67 | 6f 74 6f 20 32 30 30 0d | error g|oto 200.|
|00001340| 20 20 20 20 31 32 30 20 | 6f 70 65 6e 20 22 43 4f | 120 |open "CO|
|00001350| 4d 31 3a 22 20 66 6f 72 | 20 69 6e 70 75 74 20 61 |M1:" for| input a|
|00001360| 73 20 23 33 20 3a 20 61 | 6c 74 73 65 74 75 70 24 |s #3 : a|ltsetup$|
|00001370| 20 3d 20 22 43 4f 4d 31 | 3a 20 22 2b 65 72 72 6f | = "COM1|: "+erro|
|00001380| 72 73 74 61 74 75 73 24 | 0d 20 20 20 20 31 33 30 |rstatus$|. 130|
|00001390| 20 6f 70 65 6e 20 22 43 | 4f 4d 31 3a 22 20 66 6f | open "C|OM1:" fo|
|000013a0| 72 20 6f 75 74 70 75 74 | 20 61 73 20 23 34 0d 20 |r output| as #4. |
|000013b0| 20 20 20 31 35 30 20 77 | 68 69 6c 65 20 6e 6f 74 | 150 w|hile not|
|000013c0| 20 6d 6f 75 73 65 28 30 | 29 0d 20 20 20 20 31 36 | mouse(0|). 16|
|000013d0| 30 20 20 20 69 66 20 6e | 6f 74 20 65 6f 66 28 33 |0 if n|ot eof(3|
|000013e0| 29 20 74 68 65 6e 20 69 | 20 3d 20 66 67 65 74 62 |) then i| = fgetb|
|000013f0| 79 74 65 28 33 29 20 3a | 20 70 72 69 6e 74 20 63 |yte(3) :| print c|
|00001400| 68 72 24 28 69 29 3b 0d | 20 20 20 20 31 37 30 20 |hr$(i);.| 170 |
|00001410| 20 20 63 24 20 3d 20 69 | 6e 6b 65 79 24 20 3a 20 | c$ = i|nkey$ : |
|00001420| 69 66 20 6c 65 6e 28 63 | 24 29 20 3e 20 30 20 74 |if len(c|$) > 0 t|
|00001430| 68 65 6e 20 70 72 69 6e | 74 20 23 34 2c 63 24 3b |hen prin|t #4,c$;|
|00001440| 0d 20 20 20 20 31 38 30 | 20 77 65 6e 64 0d 20 20 |. 180| wend. |
|00001450| 20 20 31 39 30 20 70 72 | 69 6e 74 20 22 20 63 6c | 190 pr|int " cl|
|00001460| 6f 73 69 6e 67 20 73 65 | 72 69 61 6c 20 70 6f 72 |osing se|rial por|
|00001470| 74 73 22 20 3a 20 63 6c | 6f 73 65 20 23 34 20 3a |ts" : cl|ose #4 :|
|00001480| 20 63 6c 6f 73 65 20 23 | 33 0d 20 20 20 20 32 30 | close #|3. 20|
|00001490| 30 20 70 72 69 6e 74 20 | 65 72 72 6f 72 73 74 61 |0 print |errorsta|
|000014a0| 74 75 73 24 20 3a 20 67 | 6f 74 6f 20 31 39 30 0d |tus$ : g|oto 190.|
|000014b0| 0d 20 20 20 54 68 65 20 | 63 6f 6d 6d 61 6e 64 0d |. The |command.|
|000014c0| 20 20 20 20 20 20 20 20 | 43 41 4c 4c 20 22 73 65 | |CALL "se|
|000014d0| 6e 64 62 72 65 61 6b 22 | 2c 20 6e 0d 20 20 20 77 |ndbreak"|, n. w|
|000014e0| 69 6c 6c 20 73 65 6e 64 | 20 61 20 62 72 65 61 6b |ill send| a break|
|000014f0| 20 66 6f 72 20 6e 20 74 | 69 63 6b 73 20 28 36 30 | for n t|icks (60|
|00001500| 74 68 73 20 6f 66 20 61 | 20 73 65 63 6f 6e 64 29 |ths of a| second)|
|00001510| 2e 0d 20 20 20 0d 20 20 | 20 49 66 20 79 6f 75 20 |.. . | If you |
|00001520| 63 61 6e 27 74 20 75 73 | 65 20 74 68 65 20 43 6f |can't us|e the Co|
|00001530| 6d 6d 75 6e 69 63 61 74 | 69 6f 6e 73 20 54 6f 6f |mmunicat|ions Too|
|00001540| 6c 42 6f 78 20 53 65 72 | 69 61 6c 20 54 6f 6f 6c |lBox Ser|ial Tool|
|00001550| 20 66 6f 72 20 61 6e 79 | 0d 20 20 20 72 65 61 73 | for any|. reas|
|00001560| 6f 6e 2c 79 6f 75 20 63 | 61 6e 20 74 72 79 20 75 |on,you c|an try u|
|00001570| 73 69 6e 67 0d 20 20 20 | 20 20 20 20 20 6f 70 65 |sing. | ope|
|00001580| 6e 20 22 43 4f 4d 33 3a | 20 31 39 32 30 30 22 20 |n "COM3:| 19200" |
|00001590| 66 6f 72 20 69 6e 70 75 | 74 20 61 73 20 23 33 20 |for inpu|t as #3 |
|000015a0| 20 20 20 20 20 27 20 6e | 6f 74 65 20 74 68 65 20 | ' n|ote the |
|000015b0| 43 4f 4d 33 3a 0d 20 20 | 20 69 6e 73 74 65 61 64 |COM3:. | instead|
|000015c0| 2e 20 20 54 68 69 73 20 | 75 73 65 73 20 74 68 65 |. This |uses the|
|000015d0| 20 73 65 72 69 61 6c 20 | 70 6f 72 74 20 64 72 69 | serial |port dri|
|000015e0| 76 65 72 20 64 69 72 65 | 63 74 6c 79 20 28 73 65 |ver dire|ctly (se|
|000015f0| 72 69 61 6c 20 70 6f 72 | 74 0d 20 20 20 6f 6e 6c |rial por|t. onl|
|00001600| 79 29 2c 20 61 6e 64 20 | 69 73 6e 27 74 20 61 73 |y), and |isn't as|
|00001610| 20 63 6f 6d 70 61 74 69 | 62 6c 65 20 61 73 20 75 | compati|ble as u|
|00001620| 73 69 6e 67 20 74 68 65 | 20 43 6f 6d 6d 75 6e 69 |sing the| Communi|
|00001630| 63 61 74 69 6f 6e 73 20 | 54 6f 6f 6c 42 6f 78 2e |cations |ToolBox.|
|00001640| 0d 0d 51 3a 20 48 6f 77 | 20 64 6f 20 49 20 75 73 |..Q: How| do I us|
|00001650| 65 20 73 70 72 69 74 65 | 73 3f 0d 41 3a 20 53 70 |e sprite|s?.A: Sp|
|00001660| 72 69 74 65 20 61 72 65 | 20 6c 69 74 74 6c 65 20 |rite are| little |
|00001670| 69 63 6f 6e 73 20 74 68 | 61 74 20 63 61 6e 20 62 |icons th|at can b|
|00001680| 65 20 6d 6f 76 65 64 20 | 61 72 6f 75 6e 64 20 69 |e moved |around i|
|00001690| 6e 20 74 68 65 20 67 72 | 61 70 68 69 63 73 0d 20 |n the gr|aphics. |
|000016a0| 20 20 77 69 6e 64 6f 77 | 2e 20 20 59 6f 75 20 63 | window|. You c|
|000016b0| 61 6e 20 75 73 65 20 75 | 70 20 74 6f 20 31 35 20 |an use u|p to 15 |
|000016c0| 73 70 72 69 74 65 73 2c | 20 6e 75 6d 62 65 72 65 |sprites,| numbere|
|000016d0| 64 20 66 72 6f 6d 20 31 | 20 74 6f 20 31 35 20 20 |d from 1| to 15 |
|000016e0| 53 70 72 69 74 65 73 0d | 20 20 20 77 69 6c 6c 20 |Sprites.| will |
|000016f0| 61 70 70 65 61 72 20 69 | 6e 20 66 72 6f 6e 74 20 |appear i|n front |
|00001700| 6f 66 20 61 6e 79 20 67 | 72 61 70 68 69 63 73 20 |of any g|raphics |
|00001710| 6f 72 20 70 69 63 74 73 | 20 69 6e 20 74 68 65 20 |or picts| in the |
|00001720| 67 72 61 70 68 69 63 73 | 20 77 69 6e 64 6f 77 2e |graphics| window.|
|00001730| 0d 20 20 20 54 68 65 20 | 73 70 72 69 74 65 73 20 |. The |sprites |
|00001740| 61 72 65 20 69 6e 20 6c | 61 79 65 72 73 3b 20 73 |are in l|ayers; s|
|00001750| 70 72 69 74 65 20 31 20 | 77 69 6c 6c 20 70 61 73 |prite 1 |will pas|
|00001760| 73 20 69 6e 20 66 72 6f | 6e 74 20 6f 66 20 73 70 |s in fro|nt of sp|
|00001770| 72 69 74 65 20 32 0d 20 | 20 20 77 68 65 6e 20 74 |rite 2. | when t|
|00001780| 68 65 79 20 6f 76 65 72 | 6c 61 70 2c 20 65 74 63 |hey over|lap, etc|
|00001790| 2e 20 0d 20 20 20 0d 20 | 20 20 59 6f 75 20 73 70 |. . . | You sp|
|000017a0| 65 63 69 66 79 20 77 68 | 61 74 20 79 6f 75 20 77 |ecify wh|at you w|
|000017b0| 61 6e 74 20 61 20 70 61 | 72 74 69 63 75 6c 61 72 |ant a pa|rticular|
|000017c0| 20 73 70 72 69 74 65 20 | 74 6f 20 6c 6f 6f 6b 20 | sprite |to look |
|000017d0| 6c 69 6b 65 20 62 79 20 | 75 73 69 6e 67 0d 20 20 |like by |using. |
|000017e0| 20 61 20 72 65 73 6f 75 | 72 63 65 20 49 44 2e 20 | a resou|rce ID. |
|000017f0| 20 46 6f 72 20 69 6e 73 | 74 61 6e 63 65 20 61 20 | For ins|tance a |
|00001800| 73 70 72 69 74 65 20 77 | 69 74 68 20 61 20 72 65 |sprite w|ith a re|
|00001810| 73 6f 75 72 63 65 20 69 | 64 20 6f 66 20 32 38 20 |source i|d of 28 |
|00001820| 6c 6f 6f 6b 73 0d 20 20 | 20 6c 69 6b 65 20 74 68 |looks. | like th|
|00001830| 65 20 43 68 69 70 6d 75 | 6e 6b 20 69 63 6f 6e 2c |e Chipmu|nk icon,|
|00001840| 20 77 69 74 68 20 61 20 | 72 65 73 6f 75 72 63 65 | with a |resource|
|00001850| 20 69 64 20 6f 66 20 31 | 33 30 20 6c 6f 6f 6b 73 | id of 1|30 looks|
|00001860| 20 6c 69 6b 65 20 61 20 | 62 61 6c 6c 2e 0d 20 20 | like a |ball.. |
|00001870| 20 41 20 73 70 72 69 74 | 65 20 77 69 74 68 20 77 | A sprit|e with w|
|00001880| 69 74 68 20 61 20 72 73 | 72 63 20 69 64 20 6f 66 |ith a rs|rc id of|
|00001890| 20 30 20 69 73 20 69 6e | 76 69 73 69 62 6c 65 2e | 0 is in|visible.|
|000018a0| 0d 20 20 20 0d 20 20 20 | 59 6f 75 20 6d 61 79 20 |. . |You may |
|000018b0| 70 6c 61 63 65 20 73 70 | 72 69 74 65 73 20 61 74 |place sp|rites at|
|000018c0| 20 61 6e 20 78 2c 79 20 | 63 6f 6f 72 64 69 6e 61 | an x,y |coordina|
|000018d0| 74 65 2e 20 20 4f 72 20 | 79 6f 75 20 6d 61 79 20 |te. Or |you may |
|000018e0| 6d 6f 76 65 20 74 68 65 | 6d 0d 20 20 20 61 72 6f |move the|m. aro|
|000018f0| 75 6e 64 20 61 6e 64 20 | 6c 65 61 76 65 20 61 20 |und and |leave a |
|00001900| 74 72 61 69 6c 20 62 65 | 68 69 6e 64 20 74 68 65 |trail be|hind the|
|00001910| 6d 20 74 6f 20 64 72 61 | 77 20 74 68 69 6e 67 73 |m to dra|w things|
|00001920| 2e 20 20 53 70 72 69 74 | 65 20 6d 6f 76 65 6d 65 |. Sprit|e moveme|
|00001930| 6e 74 0d 20 20 20 63 6f | 6d 6d 61 6e 64 73 20 69 |nt. co|mmands i|
|00001940| 6e 63 6c 75 64 65 20 7b | 20 75 70 2c 20 64 6f 77 |nclude {| up, dow|
|00001950| 6e 2c 20 6c 65 66 74 2c | 20 72 69 67 68 74 2c 20 |n, left,| right, |
|00001960| 66 6f 72 77 61 72 64 2c | 20 74 75 72 6e 2c 20 74 |forward,| turn, t|
|00001970| 75 72 6e 6c 65 66 74 2c | 0d 20 20 20 74 75 72 6e |urnleft,|. turn|
|00001980| 72 69 67 68 74 2c 20 74 | 75 72 6e 74 6f 2c 20 70 |right, t|urnto, p|
|00001990| 65 6e 75 70 20 61 6e 64 | 20 70 65 6e 64 6f 77 6e |enup and| pendown|
|000019a0| 20 7d 2e 20 20 54 6f 20 | 67 65 74 20 72 69 64 20 | }. To |get rid |
|000019b0| 6f 66 20 61 20 73 70 72 | 69 74 65 2c 0d 20 20 20 |of a spr|ite,. |
|000019c0| 73 69 6d 70 6c 79 20 6d | 6f 76 65 20 74 68 65 6d |simply m|ove them|
|000019d0| 20 6f 66 66 73 63 72 65 | 65 6e 20 28 65 2e 67 2e | offscre|en (e.g.|
|000019e0| 20 7b 20 78 2c 79 20 7d | 20 3d 20 7b 20 2d 31 2c | { x,y }| = { -1,|
|000019f0| 2d 31 7d 20 29 2e 0d 0d | 51 3a 20 48 6f 77 20 64 |-1} )...|Q: How d|
|00001a00| 6f 20 49 20 6d 61 6b 65 | 20 6d 79 20 6f 77 6e 20 |o I make| my own |
|00001a10| 73 70 72 69 74 65 73 3f | 0d 41 3a 20 49 20 75 73 |sprites?|.A: I us|
|00001a20| 65 20 52 65 73 45 64 69 | 74 20 28 61 76 61 69 6c |e ResEdi|t (avail|
|00001a30| 61 62 6c 65 20 66 72 6f | 6d 20 66 74 70 2e 61 70 |able fro|m ftp.ap|
|00001a40| 70 6c 65 2e 63 6f 6d 29 | 2e 20 20 4a 75 73 74 20 |ple.com)|. Just |
|00001a50| 70 61 73 74 65 20 74 68 | 65 20 6e 65 77 0d 20 20 |paste th|e new. |
|00001a60| 20 73 70 72 69 74 65 20 | 27 49 43 4e 23 27 20 61 | sprite |'ICN#' a|
|00001a70| 6e 64 20 27 63 69 63 6e | 27 73 20 69 6e 74 6f 20 |nd 'cicn|'s into |
|00001a80| 74 68 65 20 72 65 73 6f | 75 72 63 65 20 66 6f 72 |the reso|urce for|
|00001a90| 6b 20 6f 66 20 61 20 66 | 69 6c 65 2e 20 20 54 68 |k of a f|ile. Th|
|00001aa0| 65 6e 0d 20 20 20 20 20 | 20 20 20 6f 70 65 6e 20 |en. | open |
|00001ab0| 22 6d 79 72 65 73 66 69 | 6c 65 2e 72 73 72 63 22 |"myresfi|le.rsrc"|
|00001ac0| 20 66 6f 72 20 64 61 74 | 61 20 69 6e 70 75 74 0d | for dat|a input.|
|00001ad0| 20 20 20 77 69 6c 6c 20 | 75 73 65 20 74 68 65 20 | will |use the |
|00001ae0| 6e 61 6d 65 64 20 72 65 | 73 6f 75 72 63 65 20 66 |named re|source f|
|00001af0| 69 6c 65 20 66 6f 72 20 | 73 70 72 69 74 65 20 28 |ile for |sprite (|
|00001b00| 70 69 63 74 20 26 20 73 | 6f 75 6e 64 29 20 72 65 |pict & s|ound) re|
|00001b10| 73 6f 75 72 63 65 73 2e | 0d 20 20 20 52 65 73 6f |sources.|. Reso|
|00001b20| 75 72 63 65 20 49 44 27 | 73 20 31 32 38 2d 31 36 |urce ID'|s 128-16|
|00001b30| 30 20 61 72 65 20 72 65 | 73 65 72 76 65 64 20 66 |0 are re|served f|
|00001b40| 6f 72 20 74 68 65 20 43 | 68 69 70 6d 75 6e 6b 20 |or the C|hipmunk |
|00001b50| 42 61 73 69 63 20 69 6e | 74 65 72 70 72 65 74 65 |Basic in|terprete|
|00001b60| 72 2c 0d 20 20 20 73 6f | 20 70 6c 65 61 73 65 20 |r,. so| please |
|00001b70| 75 73 65 20 61 20 68 69 | 67 68 20 72 65 73 6f 75 |use a hi|gh resou|
|00001b80| 72 63 65 20 49 44 20 6e | 75 6d 62 65 72 2e 20 20 |rce ID n|umber. |
|00001b90| 41 20 27 63 69 63 6e 27 | 20 72 65 73 6f 75 72 63 |A 'cicn'| resourc|
|00001ba0| 65 20 72 65 71 75 69 72 | 65 73 0d 20 20 20 61 20 |e requir|es. a |
|00001bb0| 27 49 43 4e 23 27 20 72 | 65 73 6f 75 72 63 65 20 |'ICN#' r|esource |
|00001bc0| 77 69 74 68 20 74 68 65 | 20 73 61 6d 65 20 49 44 |with the| same ID|
|00001bd0| 20 6e 75 6d 62 65 72 2e | 20 20 59 6f 75 20 63 61 | number.| You ca|
|00001be0| 6e 20 75 73 65 20 74 68 | 65 20 73 61 6d 65 0d 20 |n use th|e same. |
|00001bf0| 20 20 6d 65 74 68 6f 64 | 20 66 6f 72 20 63 72 65 | method| for cre|
|00001c00| 61 74 69 6e 67 20 63 75 | 73 74 6f 6d 20 50 49 43 |ating cu|stom PIC|
|00001c10| 54 20 61 6e 64 20 73 6f | 75 6e 64 20 72 65 73 6f |T and so|und reso|
|00001c20| 75 72 63 65 73 2e 20 20 | 59 6f 75 20 63 61 6e 20 |urces. |You can |
|00001c30| 61 6c 73 6f 0d 20 20 20 | 70 61 73 74 65 20 72 65 |also. |paste re|
|00001c40| 73 6f 75 72 63 65 73 20 | 64 69 72 65 63 74 6c 79 |sources |directly|
|00001c50| 20 69 6e 74 6f 20 79 6f | 75 72 20 2e 62 61 73 20 | into yo|ur .bas |
|00001c60| 70 72 6f 67 72 61 6d 20 | 74 65 78 74 20 66 69 6c |program |text fil|
|00001c70| 65 2e 0d 20 20 20 0d 51 | 3a 20 57 68 79 20 63 61 |e.. .Q|: Why ca|
|00001c80| 6e 27 74 20 49 20 6d 61 | 6b 65 20 6d 79 20 67 72 |n't I ma|ke my gr|
|00001c90| 61 70 68 69 63 73 20 77 | 69 6e 64 6f 77 20 62 69 |aphics w|indow bi|
|00001ca0| 67 67 65 72 3f 0d 20 20 | 20 49 66 20 79 6f 75 20 |gger?. | If you |
|00001cb0| 68 61 76 65 20 65 6e 6f | 75 67 68 20 6d 65 6d 6f |have eno|ugh memo|
|00001cc0| 72 79 20 69 6e 20 79 6f | 75 72 20 4d 61 63 2c 20 |ry in yo|ur Mac, |
|00001cd0| 74 72 79 20 69 6e 63 72 | 65 61 73 69 6e 67 20 74 |try incr|easing t|
|00001ce0| 68 65 20 50 72 65 66 65 | 72 72 65 64 0d 20 20 20 |he Prefe|rred. |
|00001cf0| 4d 65 6d 6f 72 79 20 72 | 65 71 75 69 72 65 6d 65 |Memory r|equireme|
|00001d00| 6e 74 73 20 6f 66 20 43 | 68 69 70 6d 75 6e 6b 20 |nts of C|hipmunk |
|00001d10| 42 61 73 69 63 20 75 73 | 69 6e 67 20 74 68 65 20 |Basic us|ing the |
|00001d20| 46 69 6e 64 65 72 20 47 | 65 74 20 49 6e 66 6f 20 |Finder G|et Info |
|00001d30| 64 69 61 6c 6f 67 2e 0d | 20 20 20 41 6c 73 6f 20 |dialog..| Also |
|00001d40| 74 72 79 20 64 65 63 72 | 65 61 73 69 6e 67 20 74 |try decr|easing t|
|00001d50| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 6f 6c |he numbe|r of col|
|00001d60| 6f 72 73 20 69 6e 20 74 | 68 65 20 4d 6f 6e 69 74 |ors in t|he Monit|
|00001d70| 6f 72 73 20 43 6f 6e 74 | 72 6f 6c 20 50 61 6e 65 |ors Cont|rol Pane|
|00001d80| 6c 2e 0d 0d 51 3a 20 43 | 61 6e 20 79 6f 75 20 73 |l...Q: C|an you s|
|00001d90| 65 6e 64 20 6d 65 20 61 | 20 6c 69 73 74 20 6f 66 |end me a| list of|
|00001da0| 20 64 69 66 66 65 72 65 | 6e 74 20 70 65 65 6b 73 | differe|nt peeks|
|00001db0| 20 61 6e 64 20 70 6f 6b | 65 73 3f 0d 41 3a 20 50 | and pok|es?.A: P|
|00001dc0| 65 65 6b 73 20 61 6e 64 | 20 70 6f 6b 65 73 20 64 |eeks and| pokes d|
|00001dd0| 6f 6e 27 74 20 68 61 76 | 65 20 6d 75 63 68 20 75 |on't hav|e much u|
|00001de0| 73 65 20 6f 6e 20 63 75 | 72 72 65 6e 74 20 4d 61 |se on cu|rrent Ma|
|00001df0| 63 20 53 79 73 74 65 6d | 73 2e 20 20 49 66 20 79 |c System|s. If y|
|00001e00| 6f 75 0d 20 20 20 77 61 | 6e 74 20 74 6f 20 6c 69 |ou. wa|nt to li|
|00001e10| 76 65 20 64 61 6e 67 65 | 72 6f 75 73 6c 79 2c 20 |ve dange|rously, |
|00001e20| 79 6f 75 20 6d 69 67 68 | 74 20 77 61 6e 74 20 74 |you migh|t want t|
|00001e30| 6f 20 67 65 74 20 61 20 | 63 6f 70 79 20 6f 66 20 |o get a |copy of |
|00001e40| 53 79 73 45 71 75 2e 68 | 20 6f 72 0d 20 20 20 4c |SysEqu.h| or. L|
|00001e50| 6f 4d 65 6d 2e 68 20 66 | 72 6f 6d 20 61 6e 20 6f |oMem.h f|rom an o|
|00001e60| 6c 64 20 43 20 6f 72 20 | 36 38 4b 20 61 73 73 65 |ld C or |68K asse|
|00001e70| 6d 62 6c 79 20 6c 61 6e | 67 75 61 67 65 20 70 72 |mbly lan|guage pr|
|00001e80| 6f 67 72 61 6d 6d 69 6e | 67 20 70 61 63 6b 61 67 |ogrammin|g packag|
|00001e90| 65 3b 0d 20 20 20 62 75 | 74 20 64 6f 6e 27 74 20 |e;. bu|t don't |
|00001ea0| 65 78 70 65 63 74 20 61 | 6e 79 74 68 69 6e 67 20 |expect a|nything |
|00001eb0| 79 6f 75 20 64 6f 20 74 | 6f 20 62 65 20 63 6f 6d |you do t|o be com|
|00001ec0| 70 61 74 69 62 6c 65 20 | 77 69 74 68 20 74 68 65 |patible |with the|
|00001ed0| 20 6c 61 74 65 73 74 0d | 20 20 20 4d 61 63 4f 53 | latest.| MacOS|
|00001ee0| 20 53 79 73 74 65 6d 20 | 73 6f 66 74 77 61 72 65 | System |software|
|00001ef0| 2e 0d 0d 51 3a 20 49 73 | 20 74 68 65 72 65 20 61 |...Q: Is| there a|
|00001f00| 20 63 6f 6d 70 69 6c 65 | 72 20 66 6f 72 20 43 68 | compile|r for Ch|
|00001f10| 69 70 6d 75 6e 6b 20 42 | 61 73 69 63 3f 0d 41 3a |ipmunk B|asic?.A:|
|00001f20| 20 4e 6f 2c 20 68 6f 77 | 65 76 65 72 20 74 68 65 | No, how|ever the|
|00001f30| 72 65 20 61 72 65 20 73 | 65 76 65 72 61 6c 20 63 |re are s|everal c|
|00001f40| 6f 6d 6d 65 72 63 69 61 | 6c 20 42 61 73 69 63 20 |ommercia|l Basic |
|00001f50| 63 6f 6d 70 69 6c 65 72 | 73 20 6f 6e 20 74 68 65 |compiler|s on the|
|00001f60| 20 6d 61 72 6b 65 74 0d | 20 20 20 28 53 74 61 7a | market.| (Staz|
|00001f70| 20 46 75 74 75 72 65 42 | 61 73 69 63 2c 20 54 72 | FutureB|asic, Tr|
|00001f80| 75 65 20 42 61 73 69 63 | 2c 20 56 49 50 20 42 61 |ue Basic|, VIP Ba|
|00001f90| 73 69 63 2c 20 4f 72 61 | 63 6c 65 20 50 6f 77 65 |sic, Ora|cle Powe|
|00001fa0| 72 20 4f 62 6a 65 63 74 | 73 20 2e 2e 2e 29 0d 20 |r Object|s ...). |
|00001fb0| 20 20 61 6e 64 20 72 75 | 6d 6f 72 73 20 6f 66 20 | and ru|mors of |
|00001fc0| 6d 61 6a 6f 72 20 6e 65 | 77 20 73 75 70 70 6f 72 |major ne|w suppor|
|00001fd0| 74 20 66 6f 72 20 74 68 | 65 20 42 41 53 49 43 20 |t for th|e BASIC |
|00001fe0| 6c 61 6e 67 75 61 67 65 | 20 6f 6e 20 74 68 65 20 |language| on the |
|00001ff0| 4d 61 63 0d 20 20 20 63 | 6f 6d 69 6e 67 20 6e 65 |Mac. c|oming ne|
|00002000| 78 74 20 79 65 61 72 20 | 28 31 39 39 37 20 6d 61 |xt year |(1997 ma|
|00002010| 79 62 65 20 3f 2c 20 20 | 4b 65 6e 6f 62 69 20 3f |ybe ?, |Kenobi ?|
|00002020| 3f 2c 20 44 65 6e 61 6c | 69 20 3f 3f 3f 20 2e 2e |?, Denal|i ??? ..|
|00002030| 2e 20 29 2e 0d 20 20 20 | 0d 51 3a 20 57 68 79 20 |. ).. |.Q: Why |
|00002040| 69 73 6e 27 74 20 74 68 | 69 73 20 63 6f 6f 6c 20 |isn't th|is cool |
|00002050| 63 6f 6d 6d 61 6e 64 20 | 74 68 61 74 20 49 20 66 |command |that I f|
|00002060| 6f 75 6e 64 20 64 6f 63 | 75 6d 65 6e 74 65 64 2e |ound doc|umented.|
|00002070| 0d 41 3a 20 41 6e 79 20 | 75 6e 64 6f 63 75 6d 65 |.A: Any |undocume|
|00002080| 6e 74 65 64 20 63 6f 6d | 6d 61 6e 64 20 69 73 20 |nted com|mand is |
|00002090| 66 61 69 72 20 67 61 6d | 65 20 74 6f 20 63 68 61 |fair gam|e to cha|
|000020a0| 6e 67 65 20 69 6e 20 74 | 68 65 20 6e 65 78 74 20 |nge in t|he next |
|000020b0| 76 65 72 73 69 6f 6e 2e | 0d 20 20 20 55 73 65 20 |version.|. Use |
|000020c0| 61 74 20 79 6f 75 72 20 | 6f 77 6e 20 72 69 73 6b |at your |own risk|
|000020d0| 3a 20 48 65 79 2c 20 65 | 76 65 6e 20 73 6f 6d 65 |: Hey, e|ven some|
|000020e0| 20 6f 66 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 | of the |document|
|000020f0| 65 64 20 63 6f 6d 6d 61 | 6e 64 73 20 63 68 61 6e |ed comma|nds chan|
|00002100| 67 65 21 0d 0d 51 3a 20 | 28 6e 6f 74 20 72 65 61 |ge!..Q: |(not rea|
|00002110| 6c 6c 79 20 61 20 71 75 | 65 73 74 69 6f 6e 29 20 |lly a qu|estion) |
|00002120| 54 68 65 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |The docu|mentatio|
|00002130| 6e 20 73 2a 63 6b 73 2e | 2e 2e 20 20 75 68 2c 20 |n s*cks.|.. uh, |
|00002140| 73 74 69 6e 6b 73 2e 0d | 41 3a 20 49 27 6d 20 63 |stinks..|A: I'm c|
|00002150| 72 61 7a 79 20 65 6e 6f | 75 67 68 20 74 6f 20 68 |razy eno|ugh to h|
|00002160| 61 76 65 20 66 6f 75 6e | 64 20 74 68 61 74 20 74 |ave foun|d that t|
|00002170| 69 6e 6b 65 72 69 6e 67 | 20 77 69 74 68 20 61 6e |inkering| with an|
|00002180| 64 20 65 6e 68 61 6e 63 | 69 6e 67 0d 20 20 20 43 |d enhanc|ing. C|
|00002190| 68 69 70 6d 75 6e 6b 20 | 42 61 73 69 63 20 68 61 |hipmunk |Basic ha|
|000021a0| 73 20 62 65 65 6e 20 65 | 6e 6a 6f 79 61 62 6c 65 |s been e|njoyable|
|000021b0| 20 75 73 65 20 6f 66 20 | 73 6f 6d 65 20 73 70 61 | use of |some spa|
|000021c0| 72 65 20 74 69 6d 65 2e | 20 20 49 66 20 79 6f 75 |re time.| If you|
|000021d0| 0d 20 20 20 61 72 65 20 | 65 6e 6c 69 67 68 74 65 |. are |enlighte|
|000021e0| 6e 65 64 20 65 6e 6f 75 | 67 68 20 74 6f 20 65 6e |ned enou|gh to en|
|000021f0| 6a 6f 79 20 77 72 69 74 | 69 6e 67 20 71 75 61 6c |joy writ|ing qual|
|00002200| 69 74 79 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |ity docu|mentatio|
|00002210| 6e 2c 20 70 6c 65 61 73 | 65 0d 20 20 20 66 65 65 |n, pleas|e. fee|
|00002220| 6c 20 66 72 65 65 20 74 | 6f 20 63 6f 6e 74 72 69 |l free t|o contri|
|00002230| 62 75 74 65 20 79 6f 75 | 72 20 65 66 66 6f 72 74 |bute you|r effort|
|00002240| 73 2e 0d 0d 51 3a 20 57 | 68 61 74 20 69 73 20 74 |s...Q: W|hat is t|
|00002250| 68 65 20 68 69 73 74 6f | 72 79 20 6f 66 20 43 68 |he histo|ry of Ch|
|00002260| 69 70 6d 75 6e 6b 20 42 | 61 73 69 63 3f 0d 41 3a |ipmunk B|asic?.A:|
|00002270| 20 49 6e 20 4d 61 72 63 | 68 20 31 39 39 30 2c 20 | In Marc|h 1990, |
|00002280| 70 32 63 2c 20 61 20 70 | 61 73 63 61 6c 20 74 6f |p2c, a p|ascal to|
|00002290| 20 63 20 74 72 61 6e 73 | 6c 61 74 6f 72 2c 20 77 | c trans|lator, w|
|000022a0| 61 73 20 70 6f 73 74 65 | 64 20 74 6f 20 74 68 65 |as poste|d to the|
|000022b0| 20 75 73 65 6e 65 74 0d | 20 20 20 6e 65 77 73 67 | usenet.| newsg|
|000022c0| 72 6f 75 70 20 22 63 6f | 6d 70 2e 73 6f 75 72 63 |roup "co|mp.sourc|
|000022d0| 65 2e 6d 69 73 63 22 20 | 62 79 20 44 61 76 69 64 |e.misc" |by David|
|000022e0| 20 47 69 6c 6c 65 73 70 | 69 65 2e 20 20 4f 6e 65 | Gillesp|ie. One|
|000022f0| 20 6f 66 20 74 68 65 20 | 74 65 73 74 0d 20 20 20 | of the |test. |
|00002300| 69 6e 70 75 74 20 66 69 | 6c 65 73 20 77 61 73 20 |input fi|les was |
|00002310| 22 62 61 73 69 63 2e 70 | 22 2e 20 20 49 20 75 73 |"basic.p|". I us|
|00002320| 65 64 20 74 68 65 20 6f | 75 74 70 75 74 20 63 20 |ed the o|utput c |
|00002330| 66 69 6c 65 20 74 6f 20 | 6c 65 61 72 6e 20 61 62 |file to |learn ab|
|00002340| 6f 75 74 0d 20 20 20 6c | 61 6e 67 75 61 67 65 20 |out. l|anguage |
|00002350| 69 6e 74 65 72 70 72 65 | 74 65 72 73 20 61 6e 64 |interpre|ters and|
|00002360| 20 74 68 65 6e 20 70 6f | 72 74 65 64 20 74 68 65 | then po|rted the|
|00002370| 20 72 65 73 75 6c 74 69 | 6e 67 20 42 61 73 69 63 | resulti|ng Basic|
|00002380| 20 69 6e 74 65 72 70 72 | 65 74 65 72 0d 20 20 20 | interpr|eter. |
|00002390| 74 6f 20 61 20 4d 61 63 | 20 35 31 32 4b 45 20 61 |to a Mac| 512KE a|
|000023a0| 6e 64 20 74 68 65 6e 20 | 74 6f 20 61 20 50 6f 77 |nd then |to a Pow|
|000023b0| 65 72 4d 61 63 20 37 31 | 30 30 2e 20 20 43 68 69 |erMac 71|00. Chi|
|000023c0| 70 6d 75 6e 6b 20 42 61 | 73 69 63 20 66 6f 72 0d |pmunk Ba|sic for.|
|000023d0| 20 20 20 74 68 65 20 50 | 6f 77 65 72 4d 61 63 20 | the P|owerMac |
|000023e0| 77 61 73 20 70 6f 73 74 | 65 64 20 74 6f 20 49 6e |was post|ed to In|
|000023f0| 66 6f 2d 4d 61 63 20 6f | 6e 20 4d 61 72 63 68 20 |fo-Mac o|n March |
|00002400| 31 35 74 68 2c 20 31 39 | 39 34 2c 20 74 68 65 20 |15th, 19|94, the |
|00002410| 64 61 79 0d 20 20 20 61 | 66 74 65 72 20 74 68 65 |day. a|fter the|
|00002420| 20 66 69 72 73 74 20 50 | 6f 77 65 72 4d 61 63 69 | first P|owerMaci|
|00002430| 6e 74 6f 73 68 20 77 61 | 73 20 61 76 61 69 6c 61 |ntosh wa|s availa|
|00002440| 62 6c 65 20 66 6f 72 20 | 73 61 6c 65 20 74 6f 20 |ble for |sale to |
|00002450| 74 68 65 20 70 75 62 6c | 69 63 2e 0d 0d 2d 2d 2d |the publ|ic...---|
|00002460| 0d 41 64 64 69 74 69 6f | 6e 61 6c 20 43 68 69 70 |.Additio|nal Chip|
|00002470| 6d 75 6e 6b 20 42 61 73 | 69 63 20 4d 61 63 69 6e |munk Bas|ic Macin|
|00002480| 74 6f 73 68 20 73 70 65 | 63 69 66 69 63 20 63 6f |tosh spe|cific co|
|00002490| 6d 6d 61 6e 64 73 20 61 | 6e 64 20 66 75 6e 63 74 |mmands a|nd funct|
|000024a0| 69 6f 6e 73 3a 0d 0d 2d | 20 4d 61 63 20 47 72 61 |ions:..-| Mac Gra|
|000024b0| 70 68 69 63 73 0d 20 20 | 2a 20 6e 6f 74 65 3a 20 |phics. |* note: |
|000024c0| 61 6c 6c 20 67 72 61 70 | 68 69 63 73 20 63 6f 6d |all grap|hics com|
|000024d0| 6d 61 6e 64 73 20 69 6e | 20 76 65 72 73 69 6f 6e |mands in| version|
|000024e0| 20 33 2e 78 20 61 72 65 | 20 65 78 70 65 72 69 6d | 3.x are| experim|
|000024f0| 65 6e 74 61 6c 20 26 20 | 62 65 74 61 20 74 65 73 |ental & |beta tes|
|00002500| 74 20 2a 0d 0d 20 20 20 | 20 20 20 20 20 47 52 41 |t *.. | GRA|
|00002510| 50 48 49 43 53 20 30 20 | 20 20 20 20 20 20 20 20 |PHICS 0 | |
|00002520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002530| 20 09 3a 27 20 73 68 6f | 77 20 67 72 61 70 68 69 | .:' sho|w graphi|
|00002540| 63 73 20 77 69 6e 64 6f | 77 0d 20 20 20 20 20 20 |cs windo|w. |
|00002550| 20 20 67 72 61 70 68 69 | 63 73 20 2d 31 20 20 20 | graphi|cs -1 |
|00002560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002570| 20 20 20 20 20 09 3a 27 | 20 68 69 64 65 20 67 72 | .:'| hide gr|
|00002580| 61 70 68 69 63 73 20 77 | 69 6e 64 6f 77 0d 20 20 |aphics w|indow. |
|00002590| 20 20 20 20 20 20 67 72 | 61 70 68 69 63 73 20 57 | gr|aphics W|
|000025a0| 49 4e 44 4f 57 20 78 2c | 20 79 2c 20 77 69 64 74 |INDOW x,| y, widt|
|000025b0| 68 2c 20 68 65 69 67 68 | 74 09 3a 27 20 67 72 61 |h, heigh|t.:' gra|
|000025c0| 70 68 69 63 73 20 77 69 | 6e 64 6f 77 20 73 65 74 |phics wi|ndow set|
|000025d0| 75 70 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |up. | |
|000025e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000025f0| 20 20 20 3a 27 20 28 78 | 2c 79 29 20 6c 6f 63 61 | :' (x|,y) loca|
|00002600| 74 69 6f 6e 2c 20 77 69 | 64 74 68 20 61 6e 64 20 |tion, wi|dth and |
|00002610| 68 65 69 67 68 74 0d 20 | 20 20 20 20 20 20 20 67 |height. | g|
|00002620| 72 61 70 68 69 63 73 20 | 57 49 4e 44 4f 57 20 77 |raphics |WINDOW w|
|00002630| 69 64 74 68 2c 20 68 65 | 69 67 68 74 09 20 20 20 |idth, he|ight. |
|00002640| 20 20 20 20 20 3a 27 20 | 61 64 6a 75 73 74 20 74 | :' |adjust t|
|00002650| 68 65 20 73 69 7a 65 0d | 0d 20 20 20 20 20 20 20 |he size.|. |
|00002660| 20 67 72 61 70 68 69 63 | 73 20 4d 4f 56 45 54 4f | graphic|s MOVETO|
|00002670| 20 20 78 2c 79 09 20 20 | 20 20 20 20 20 20 3a 27 | x,y. | :'|
|00002680| 20 4d 6f 76 65 20 70 65 | 6e 20 54 6f 20 78 2c 79 | Move pe|n To x,y|
|00002690| 0d 20 20 20 20 20 20 20 | 20 67 72 61 70 68 69 63 |. | graphic|
|000026a0| 73 20 4c 49 4e 45 54 4f | 20 20 78 2c 79 09 20 20 |s LINETO| x,y. |
|000026b0| 20 20 20 20 20 20 3a 27 | 20 64 72 61 77 20 4c 69 | :'| draw Li|
|000026c0| 6e 65 20 54 6f 20 78 2c | 79 0d 20 20 20 20 20 20 |ne To x,|y. |
|000026d0| 20 20 0d 20 20 20 20 20 | 20 20 20 67 72 61 70 68 | . | graph|
|000026e0| 69 63 73 20 6d 6f 76 65 | 74 6f 20 31 30 2c 32 30 |ics move|to 10,20|
|000026f0| 20 3a 20 67 72 61 70 68 | 69 63 73 20 6c 69 6e 65 | : graph|ics line|
|00002700| 74 6f 20 33 30 2c 35 30 | 09 3a 27 20 65 78 61 6d |to 30,50|.:' exam|
|00002710| 70 6c 65 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ple. | |
|00002720| 20 20 20 20 20 20 20 20 | 20 20 20 20 3a 27 20 74 | | :' t|
|00002730| 68 61 74 20 64 72 61 77 | 73 20 61 20 6c 69 6e 65 |hat draw|s a line|
|00002740| 20 66 72 6f 6d 20 28 31 | 30 2c 32 30 29 20 74 6f | from (1|0,20) to|
|00002750| 20 28 33 30 2c 35 30 29 | 0d 0d 20 20 20 20 20 20 | (30,50)|.. |
|00002760| 20 20 67 72 61 70 68 69 | 63 73 20 43 49 52 43 4c | graphi|cs CIRCL|
|00002770| 45 20 20 78 09 20 20 20 | 20 20 20 20 20 3a 27 20 |E x. | :' |
|00002780| 63 69 72 63 6c 65 20 6f | 66 20 64 69 61 6d 65 74 |circle o|f diamet|
|00002790| 65 72 20 78 0d 20 20 20 | 20 20 20 20 20 20 20 20 |er x. | |
|000027a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3a 27 20 | | :' |
|000027b0| 70 72 65 76 69 6f 75 73 | 20 4d 4f 56 45 54 4f 20 |previous| MOVETO |
|000027c0| 78 2c 79 20 73 20 65 74 | 73 20 63 65 6e 74 65 72 |x,y s et|s center|
|000027d0| 20 6c 6f 63 61 74 69 6f | 6e 0d 20 20 20 20 20 20 | locatio|n. |
|000027e0| 20 20 67 72 61 70 68 69 | 63 73 20 4f 56 41 4c 20 | graphi|cs OVAL |
|000027f0| 20 20 20 78 2c 79 20 20 | 20 20 20 20 20 20 09 3a | x,y | .:|
|00002800| 27 20 6f 76 61 6c 20 20 | 78 20 77 69 64 65 20 62 |' oval |x wide b|
|00002810| 79 20 79 20 68 69 67 68 | 0d 0d 20 20 20 20 20 20 |y y high|.. |
|00002820| 20 20 67 72 61 70 68 69 | 63 73 20 52 45 43 54 20 | graphi|cs RECT |
|00002830| 20 78 31 2c 79 31 2c 20 | 78 32 2c 79 32 20 20 20 | x1,y1, |x2,y2 |
|00002840| 20 20 20 20 20 09 3a 27 | 20 46 72 61 6d 65 52 65 | .:'| FrameRe|
|00002850| 63 74 0d 20 20 20 20 20 | 20 20 20 67 72 61 70 68 |ct. | graph|
|00002860| 69 63 73 20 46 49 4c 4c | 52 45 43 54 20 20 78 31 |ics FILL|RECT x1|
|00002870| 2c 79 31 2c 20 78 32 2c | 79 32 2c 70 61 74 23 09 |,y1, x2,|y2,pat#.|
|00002880| 3a 27 20 50 61 69 6e 74 | 52 65 63 74 0d 20 20 20 |:' Paint|Rect. |
|00002890| 20 20 20 20 20 67 72 61 | 70 68 69 63 73 20 46 49 | gra|phics FI|
|000028a0| 4c 4c 52 45 43 54 20 20 | 78 31 2c 79 31 2c 20 78 |LLRECT |x1,y1, x|
|000028b0| 32 2c 79 32 2c 2d 31 09 | 3a 27 20 45 72 61 73 65 |2,y2,-1.|:' Erase|
|000028c0| 52 65 63 74 0d 20 20 20 | 20 20 20 20 20 67 72 61 |Rect. | gra|
|000028d0| 70 68 69 63 73 20 4f 56 | 41 4c 20 20 78 31 2c 79 |phics OV|AL x1,y|
|000028e0| 31 2c 20 78 32 2c 79 32 | 09 20 20 20 20 20 20 20 |1, x2,y2|. |
|000028f0| 20 3a 27 20 46 72 61 6d | 65 4f 76 61 6c 0d 20 20 | :' Fram|eOval. |
|00002900| 20 20 20 20 20 20 67 72 | 61 70 68 69 63 73 20 46 | gr|aphics F|
|00002910| 49 4c 4c 4f 56 41 4c 20 | 20 78 31 2c 79 31 2c 20 |ILLOVAL | x1,y1, |
|00002920| 78 32 2c 79 32 2c 70 61 | 74 23 09 3a 27 20 50 61 |x2,y2,pa|t#.:' Pa|
|00002930| 69 6e 74 4f 76 61 6c 0d | 20 20 20 20 20 20 20 20 |intOval.| |
|00002940| 67 72 61 70 68 69 63 73 | 20 50 45 4e 53 45 54 55 |graphics| PENSETU|
|00002950| 50 20 20 78 73 69 7a 65 | 2c 20 79 73 69 7a 65 20 |P xsize|, ysize |
|00002960| 5b 2c 20 6d 6f 64 65 2c | 20 70 61 74 23 20 5d 20 |[, mode,| pat# ] |
|00002970| 3a 27 20 6d 6f 64 65 73 | 20 38 2d 31 35 0d 20 20 |:' modes| 8-15. |
|00002980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3a 27 | | :'|
|00002990| 20 6d 6f 64 65 73 20 2d | 20 38 20 70 61 74 43 6f | modes -| 8 patCo|
|000029a0| 70 79 2c 20 39 20 70 61 | 74 4f 72 2c 20 31 30 20 |py, 9 pa|tOr, 10 |
|000029b0| 70 61 74 58 6f 72 2c 20 | 31 31 20 70 61 74 42 69 |patXor, |11 patBi|
|000029c0| 63 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |c. | |
|000029d0| 20 20 3a 27 20 70 61 74 | 23 20 2d 20 31 20 69 73 | :' pat|# - 1 is|
|000029e0| 20 62 6c 61 63 6b 2c 20 | 34 20 69 73 20 35 30 25 | black, |4 is 50%|
|000029f0| 20 64 6f 74 73 2c 20 31 | 32 20 69 73 20 62 72 69 | dots, 1|2 is bri|
|00002a00| 63 6b 73 2c 20 65 74 63 | 2e 0d 0d 20 20 20 20 20 |cks, etc|... |
|00002a10| 20 20 20 67 72 61 70 68 | 69 63 73 20 43 4f 4c 4f | graph|ics COLO|
|00002a20| 52 20 20 72 2c 67 2c 62 | 09 20 20 20 20 20 20 20 |R r,g,b|. |
|00002a30| 20 3a 27 20 72 65 64 20 | 67 72 65 65 6e 20 62 6c | :' red |green bl|
|00002a40| 75 65 20 30 2d 31 30 30 | 25 0d 20 20 20 20 20 20 |ue 0-100|%. |
|00002a50| 20 20 67 72 61 70 68 69 | 63 73 20 43 4f 4c 4f 52 | graphi|cs COLOR|
|00002a60| 20 31 30 30 2c 30 2c 30 | 09 20 20 20 20 20 20 20 | 100,0,0|. |
|00002a70| 20 3a 27 20 63 68 61 6e | 67 65 73 20 6e 65 77 20 | :' chan|ges new |
|00002a80| 63 6f 6c 6f 72 20 74 6f | 20 72 65 64 0d 20 20 20 |color to| red. |
|00002a90| 20 20 20 20 20 67 72 61 | 70 68 69 63 73 20 43 4f | gra|phics CO|
|00002aa0| 4c 4f 52 20 20 30 2c 30 | 2c 30 09 20 20 20 20 20 |LOR 0,0|,0. |
|00002ab0| 20 20 20 3a 27 20 75 73 | 65 20 64 65 66 61 75 6c | :' us|e defaul|
|00002ac0| 74 20 62 6c 61 63 6b 0d | 0d 20 20 20 20 20 20 20 |t black.|. |
|00002ad0| 20 67 72 61 70 68 69 63 | 73 20 70 73 65 74 20 78 | graphic|s pset x|
|00002ae0| 2c 79 09 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,y. | |
|00002af0| 20 20 20 3a 27 20 70 6c | 6f 74 20 31 20 70 6f 69 | :' pl|ot 1 poi|
|00002b00| 6e 74 20 61 74 20 78 2c | 79 0d 20 20 20 20 20 20 |nt at x,|y. |
|00002b10| 20 20 67 72 61 70 68 69 | 63 73 20 54 52 49 41 4e | graphi|cs TRIAN|
|00002b20| 47 4c 45 20 78 31 2c 79 | 31 2c 78 32 2c 79 32 2c |GLE x1,y|1,x2,y2,|
|00002b30| 78 33 2c 79 33 20 7b 2c | 72 2c 67 2c 62 7d 20 20 |x3,y3 {,|r,g,b} |
|00002b40| 3a 27 20 64 72 61 77 20 | 74 72 69 61 6e 67 6c 65 |:' draw |triangle|
|00002b50| 0d 20 20 20 20 20 20 20 | 20 67 72 61 70 68 69 63 |. | graphic|
|00002b60| 73 20 50 49 43 54 20 20 | 20 78 2c 79 2c 6e 09 20 |s PICT | x,y,n. |
|00002b70| 20 20 20 20 20 20 20 3a | 27 20 64 72 61 77 20 27 | :|' draw '|
|00002b80| 70 69 63 74 27 20 72 65 | 73 6f 75 72 63 65 23 20 |pict' re|source# |
|00002b90| 6e 0d 0d 20 20 20 20 20 | 20 20 20 67 72 61 70 68 |n.. | graph|
|00002ba0| 69 63 73 20 44 52 41 57 | 54 45 58 54 20 20 61 24 |ics DRAW|TEXT a$|
|00002bb0| 09 20 20 20 20 20 20 20 | 20 3a 27 20 44 72 61 77 |. | :' Draw|
|00002bc0| 54 65 78 74 0d 20 20 20 | 20 20 20 20 20 20 20 20 |Text. | |
|00002bd0| 20 20 20 20 20 3a 27 20 | 75 73 65 20 4d 4f 56 45 | :' |use MOVE|
|00002be0| 54 4f 20 78 2c 79 20 20 | 74 6f 20 70 6f 73 69 74 |TO x,y |to posit|
|00002bf0| 69 6f 6e 20 74 65 78 74 | 20 6c 6f 77 65 72 20 6c |ion text| lower l|
|00002c00| 65 66 74 20 63 6f 72 6e | 65 72 0d 20 20 20 20 20 |eft corn|er. |
|00002c10| 20 20 20 67 72 61 70 68 | 69 63 73 20 54 45 58 54 | graph|ics TEXT|
|00002c20| 53 45 54 55 50 20 66 2c | 20 73 2c 20 6d 09 3a 27 |SETUP f,| s, m.:'|
|00002c30| 20 73 65 74 20 75 70 20 | 74 65 78 74 20 66 6f 6e | set up |text fon|
|00002c40| 74 2c 20 73 69 7a 65 2c | 20 6d 6f 64 65 0d 20 20 |t, size,| mode. |
|00002c50| 20 20 20 20 20 20 67 72 | 61 70 68 69 63 73 20 74 | gr|aphics t|
|00002c60| 65 78 74 73 65 74 75 70 | 20 6d 61 63 66 75 6e 63 |extsetup| macfunc|
|00002c70| 74 69 6f 6e 28 22 47 65 | 74 46 4e 75 6d 22 2c 22 |tion("Ge|tFNum","|
|00002c80| 6d 6f 6e 61 63 6f 22 29 | 2c 20 32 34 2c 20 30 0d |monaco")|, 24, 0.|
|00002c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ca0| 3a 27 20 6d 6f 64 65 73 | 20 3a 20 30 20 73 72 63 |:' modes| : 0 src|
|00002cb0| 43 6f 70 79 2c 20 31 20 | 73 72 63 4f 72 2c 20 32 |Copy, 1 |srcOr, 2|
|00002cc0| 20 73 72 63 58 6f 72 2c | 20 33 20 73 72 63 42 69 | srcXor,| 3 srcBi|
|00002cd0| 63 0d 0d 20 20 20 20 20 | 20 20 20 67 72 61 70 68 |c.. | graph|
|00002ce0| 69 63 73 20 28 2d 33 38 | 29 09 20 20 20 20 20 20 |ics (-38|). |
|00002cf0| 20 20 20 20 20 20 3a 27 | 20 67 65 74 20 67 72 61 | :'| get gra|
|00002d00| 70 68 69 63 73 20 77 69 | 6e 64 6f 77 20 6d 61 78 |phics wi|ndow max|
|00002d10| 20 77 69 64 74 68 0d 20 | 20 20 20 20 20 20 20 67 | width. | g|
|00002d20| 72 61 70 68 69 63 73 20 | 28 2d 33 39 29 09 20 20 |raphics |(-39). |
|00002d30| 20 20 20 20 20 20 20 20 | 20 20 3a 27 20 67 65 74 | | :' get|
|00002d40| 20 67 72 61 70 68 69 63 | 73 20 77 69 6e 64 6f 77 | graphic|s window|
|00002d50| 20 6d 61 78 20 68 65 69 | 67 68 74 0d 20 20 20 20 | max hei|ght. |
|00002d60| 20 20 20 20 67 72 61 70 | 68 69 63 73 20 28 2d 33 | grap|hics (-3|
|00002d70| 34 29 09 20 20 20 20 20 | 20 20 20 20 20 20 20 3a |4). | :|
|00002d80| 27 20 67 65 74 20 67 72 | 61 70 68 69 63 73 20 77 |' get gr|aphics w|
|00002d90| 69 6e 64 6f 77 20 70 69 | 78 65 6c 20 64 65 70 74 |indow pi|xel dept|
|00002da0| 68 0d 0d 20 20 20 20 20 | 20 20 20 53 50 52 49 54 |h.. | SPRIT|
|00002db0| 45 09 6e 20 20 78 2c 20 | 79 2c 20 69 64 09 20 20 |E.n x, |y, id. |
|00002dc0| 20 20 3a 27 20 73 70 72 | 69 74 65 20 6e 20 40 20 | :' spr|ite n @ |
|00002dd0| 78 2c 79 20 75 73 69 6e | 67 20 49 43 4e 23 20 69 |x,y usin|g ICN# i|
|00002de0| 64 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |d. | |
|00002df0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002e00| 20 20 20 20 20 20 3a 27 | 20 6e 20 66 72 6f 6d 20 | :'| n from |
|00002e10| 31 20 74 6f 20 31 35 2c | 20 31 20 66 72 6f 6e 74 |1 to 15,| 1 front|
|00002e20| 6d 6f 73 74 0d 20 20 20 | 20 20 20 20 20 20 20 20 |most. | |
|00002e30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002e40| 20 20 20 20 20 20 20 20 | 20 3a 27 20 49 43 4e 23 | | :' ICN#|
|00002e50| 20 31 32 38 20 2d 20 31 | 34 31 20 69 6e 63 6c 75 | 128 - 1|41 inclu|
|00002e60| 64 65 64 20 77 69 74 68 | 20 61 70 70 0d 20 20 20 |ded with| app. |
|00002e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002e80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002e90| 20 3a 27 20 63 69 63 6e | 20 72 65 71 75 69 72 65 | :' cicn| require|
|00002ea0| 73 20 49 43 4e 23 20 77 | 69 74 68 20 73 61 6d 65 |s ICN# w|ith same|
|00002eb0| 20 69 64 2e 0d 20 20 20 | 20 20 20 20 20 73 70 72 | id.. | spr|
|00002ec0| 69 74 65 09 6e 20 20 55 | 50 20 20 20 20 78 09 20 |ite.n U|P x. |
|00002ed0| 20 20 20 3a 27 20 73 70 | 72 69 74 65 20 23 6e 20 | :' sp|rite #n |
|00002ee0| 6d 6f 76 65 20 75 70 20 | 78 20 70 69 78 65 6c 73 |move up |x pixels|
|00002ef0| 0d 20 20 20 20 20 20 20 | 20 73 70 72 69 74 65 20 |. | sprite |
|00002f00| 20 6e 20 20 44 4f 57 4e | 20 20 78 09 20 20 20 20 | n DOWN| x. |
|00002f10| 3a 27 20 20 20 61 6c 73 | 6f 20 72 65 74 75 72 6e |:' als|o return|
|00002f20| 73 20 6e 65 77 20 73 70 | 72 69 74 65 20 79 20 63 |s new sp|rite y c|
|00002f30| 6f 6f 72 64 0d 20 20 20 | 20 20 20 20 20 73 70 72 |oord. | spr|
|00002f40| 69 74 65 20 20 6e 20 20 | 4c 45 46 54 20 20 78 09 |ite n |LEFT x.|
|00002f50| 20 20 20 20 3a 27 20 6d | 6f 76 65 20 4c 45 46 54 | :' m|ove LEFT|
|00002f60| 20 28 6e 6f 74 20 74 75 | 72 6e 20 61 73 20 69 6e | (not tu|rn as in|
|00002f70| 20 4c 6f 67 6f 21 29 0d | 20 20 20 20 20 20 20 20 | Logo!).| |
|00002f80| 73 70 72 69 74 65 20 20 | 6e 20 20 52 49 47 48 54 |sprite |n RIGHT|
|00002f90| 20 20 20 78 0d 20 20 20 | 20 20 20 20 20 73 70 72 | x. | spr|
|00002fa0| 69 74 65 09 6e 20 20 54 | 55 52 4e 20 20 20 20 64 |ite.n T|URN d|
|00002fb0| 09 20 20 20 20 3a 27 20 | 74 75 72 6e 20 63 6f 75 |. :' |turn cou|
|00002fc0| 6e 74 65 72 2d 63 6c 6f | 63 6b 77 69 73 65 20 64 |nter-clo|ckwise d|
|00002fd0| 20 64 65 67 72 65 65 73 | 0d 20 20 20 20 20 20 20 | degrees|. |
|00002fe0| 20 73 70 72 69 74 65 09 | 6e 20 20 54 55 52 4e 52 | sprite.|n TURNR|
|00002ff0| 49 47 48 54 20 64 09 20 | 20 20 20 3a 27 20 74 75 |IGHT d. | :' tu|
|00003000| 72 6e 20 63 6c 6f 63 6b | 77 69 73 65 20 64 20 64 |rn clock|wise d d|
|00003010| 65 67 72 65 65 73 0d 20 | 20 20 20 20 20 20 20 73 |egrees. | s|
|00003020| 70 72 69 74 65 09 6e 20 | 20 54 55 52 4e 4c 45 46 |prite.n | TURNLEF|
|00003030| 54 20 20 64 0d 20 20 20 | 20 20 20 20 20 73 70 72 |T d. | spr|
|00003040| 69 74 65 09 6e 20 20 54 | 55 52 4e 54 4f 20 20 20 |ite.n T|URNTO |
|00003050| 20 64 09 20 20 20 20 3a | 27 20 74 75 72 6e 20 74 | d. :|' turn t|
|00003060| 6f 20 64 20 64 65 67 72 | 65 65 73 20 66 72 6f 6d |o d degr|ees from|
|00003070| 20 78 20 61 78 69 73 0d | 20 20 20 20 20 20 20 20 | x axis.| |
|00003080| 73 70 72 69 74 65 09 6e | 20 20 46 4f 52 57 41 52 |sprite.n| FORWAR|
|00003090| 44 20 78 09 20 20 20 20 | 3a 27 20 6d 6f 76 65 20 |D x. |:' move |
|000030a0| 66 6f 72 77 61 72 64 20 | 78 20 70 69 78 65 6c 73 |forward |x pixels|
|000030b0| 0d 20 20 20 20 20 20 20 | 20 73 70 72 69 74 65 09 |. | sprite.|
|000030c0| 6e 20 20 50 45 4e 55 50 | 0d 20 20 20 20 20 20 20 |n PENUP|. |
|000030d0| 20 73 70 72 69 74 65 09 | 6e 20 20 50 45 4e 44 4f | sprite.|n PENDO|
|000030e0| 57 4e 0d 20 20 20 20 20 | 20 20 20 73 70 72 69 74 |WN. | sprit|
|000030f0| 65 09 6e 20 20 43 4f 4c | 4c 49 53 49 4f 4e 09 20 |e.n COL|LISION. |
|00003100| 20 20 20 3a 27 20 72 65 | 74 75 72 6e 73 20 31 73 | :' re|turns 1s|
|00003110| 74 20 73 70 72 69 74 65 | 23 20 69 6e 20 63 6f 6e |t sprite|# in con|
|00003120| 74 61 63 74 0d 20 20 20 | 20 20 20 20 20 73 70 72 |tact. | spr|
|00003130| 69 74 65 20 20 6e 20 20 | 6f 6e 20 20 78 2c 79 09 |ite n |on x,y.|
|00003140| 20 20 20 20 3a 27 20 70 | 61 73 74 65 20 61 20 66 | :' p|aste a f|
|00003150| 69 78 65 64 20 73 70 72 | 69 74 65 20 69 6d 61 67 |ixed spr|ite imag|
|00003160| 65 20 40 28 78 2c 79 29 | 0d 0d 20 20 20 20 20 20 |e @(x,y)|.. |
|00003170| 20 20 67 72 61 70 68 69 | 63 73 20 57 49 4e 44 4f | graphi|cs WINDO|
|00003180| 57 20 2d 31 2c 2d 31 2c | 20 78 2c 79 2c 20 32 09 |W -1,-1,| x,y, 2.|
|00003190| 3a 27 20 73 63 72 6f 6c | 6c 20 67 72 61 70 68 69 |:' scrol|l graphi|
|000031a0| 63 73 20 62 61 63 6b 67 | 72 6f 75 6e 64 0d 0d 20 |cs backg|round.. |
|000031b0| 20 20 20 20 20 20 20 27 | 20 54 6f 6f 20 73 6d 61 | '| Too sma|
|000031c0| 6c 6c 20 61 20 22 50 72 | 65 66 65 72 72 65 64 20 |ll a "Pr|eferred |
|000031d0| 53 69 7a 65 22 20 28 61 | 73 20 73 65 74 20 66 72 |Size" (a|s set fr|
|000031e0| 6f 6d 20 46 69 6e 64 65 | 72 20 47 65 74 20 49 6e |om Finde|r Get In|
|000031f0| 66 6f 20 77 69 6e 64 6f | 77 29 0d 20 20 20 20 20 |fo windo|w). |
|00003200| 20 20 20 27 20 6d 61 79 | 20 6c 69 6d 69 74 20 74 | ' may| limit t|
|00003210| 68 65 20 6d 61 78 69 6d | 75 6d 20 67 72 61 70 68 |he maxim|um graph|
|00003220| 69 63 73 20 77 69 6e 64 | 6f 77 20 73 69 7a 65 2e |ics wind|ow size.|
|00003230| 0d 0d 20 20 20 20 20 20 | 20 20 63 61 6c 6c 20 22 |.. | call "|
|00003240| 73 61 76 65 70 69 63 74 | 75 72 65 22 2c 20 66 6e |savepict|ure", fn|
|00003250| 61 6d 65 24 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ame$. | |
|00003260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3a 27 20 | | :' |
|00003270| 73 61 76 65 73 20 67 72 | 61 70 68 69 63 73 20 77 |saves gr|aphics w|
|00003280| 69 6e 64 6f 77 20 74 6f | 20 61 20 50 49 43 54 20 |indow to| a PICT |
|00003290| 66 69 6c 65 0d 20 20 20 | 20 20 20 20 20 20 20 20 |file. | |
|000032a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3a 27 20 | | :' |
|000032b0| 75 73 65 20 67 72 61 70 | 68 69 63 73 20 77 69 6e |use grap|hics win|
|000032c0| 64 6f 77 20 63 6f 6d 6d | 61 6e 64 20 74 6f 20 73 |dow comm|and to s|
|000032d0| 65 74 20 73 69 7a 65 0d | 20 20 20 20 20 20 20 20 |et size.| |
|000032e0| 67 72 61 70 68 69 63 73 | 20 50 49 43 54 20 78 2c |graphics| PICT x,|
|000032f0| 79 2c 22 66 69 6c 65 6e | 61 6d 65 2e 50 49 43 54 |y,"filen|ame.PICT|
|00003300| 22 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |". | |
|00003310| 20 20 20 20 20 20 20 20 | 20 20 3a 27 20 64 72 61 | | :' dra|
|00003320| 77 73 20 67 72 61 70 68 | 69 63 73 20 66 72 6f 6d |ws graph|ics from|
|00003330| 20 50 49 43 54 20 66 69 | 6c 65 20 61 74 20 28 78 | PICT fi|le at (x|
|00003340| 2c 79 29 0d 0d 20 20 20 | 20 20 20 20 20 67 72 61 |,y).. | gra|
|00003350| 70 68 69 63 73 20 72 65 | 66 72 65 73 68 74 69 6d |phics re|freshtim|
|00003360| 65 20 35 09 3a 27 20 61 | 70 70 72 6f 78 2e 20 35 |e 5.:' a|pprox. 5|
|00003370| 2f 36 30 74 68 73 20 73 | 65 63 6f 6e 64 20 72 65 |/60ths s|econd re|
|00003380| 66 72 65 73 68 20 72 61 | 74 65 0d 20 20 20 20 20 |fresh ra|te. |
|00003390| 20 20 20 67 72 61 70 68 | 69 63 73 20 30 09 09 3a | graph|ics 0..:|
|000033a0| 27 20 72 65 66 72 65 73 | 68 20 67 72 61 70 68 69 |' refres|h graphi|
|000033b0| 63 73 20 77 69 6e 64 6f | 77 20 6e 6f 77 0d 20 20 |cs windo|w now. |
|000033c0| 20 20 20 20 20 20 09 09 | 3a 27 20 66 6f 72 20 63 | ..|:' for c|
|000033d0| 6f 6e 74 72 6f 6c 20 6f | 66 20 67 72 61 70 68 69 |ontrol o|f graphi|
|000033e0| 63 73 20 61 6e 69 6d 61 | 74 69 6f 6e 20 75 70 64 |cs anima|tion upd|
|000033f0| 61 74 65 20 72 61 74 65 | 0d 20 20 20 20 20 20 20 |ate rate|. |
|00003400| 20 0d 2d 20 4d 61 63 20 | 53 6f 75 6e 64 20 63 6f | .- Mac |Sound co|
|00003410| 6d 6d 61 6e 64 73 0d 0d | 20 20 20 20 20 20 20 20 |mmands..| |
|00003420| 6d 6f 72 73 65 20 22 43 | 51 20 44 45 20 4e 36 59 |morse "C|Q DE N6Y|
|00003430| 57 55 22 2c 31 36 2c 34 | 30 2c 31 33 2c 37 30 30 |WU",16,4|0,13,700|
|00003440| 20 20 20 20 20 20 20 20 | 3a 27 20 70 6c 61 79 20 | |:' play |
|00003450| 6d 6f 72 73 65 20 63 6f | 64 65 0d 20 20 20 20 20 |morse co|de. |
|00003460| 20 20 20 20 20 20 20 20 | 20 20 20 3a 27 20 4d 4f | | :' MO|
|00003470| 52 53 45 20 73 74 72 69 | 6e 67 2c 20 64 6f 74 5f |RSE stri|ng, dot_|
|00003480| 77 70 6d 2c 20 76 6f 6c | 75 6d 65 2c 20 6c 65 74 |wpm, vol|ume, let|
|00003490| 74 65 72 5f 77 70 6d 2c | 20 66 72 65 71 0d 20 20 |ter_wpm,| freq. |
|000034a0| 0d 20 20 20 20 20 20 20 | 20 73 61 79 20 22 68 65 |. | say "he|
|000034b0| 6c 6c 6f 20 77 6f 72 6c | 64 22 20 20 20 20 20 20 |llo worl|d" |
|000034c0| 20 20 20 20 20 20 3a 27 | 20 20 2a 72 65 71 75 69 | :'| *requi|
|000034d0| 72 65 73 2a 20 74 68 65 | 20 53 70 65 65 63 68 20 |res* the| Speech |
|000034e0| 4d 61 6e 61 67 65 72 0d | 20 20 20 20 20 20 20 20 |Manager.| |
|000034f0| 73 61 79 20 22 66 61 73 | 74 65 72 22 2c 20 31 39 |say "fas|ter", 19|
|00003500| 36 2c 20 34 34 2c 20 31 | 20 20 20 20 3a 27 20 20 |6, 44, 1| :' |
|00003510| 73 74 72 69 6e 67 2c 20 | 72 61 74 65 2c 20 70 69 |string, |rate, pi|
|00003520| 74 63 68 2c 20 76 6f 69 | 63 65 23 0d 20 20 20 20 |tch, voi|ce#. |
|00003530| 20 20 20 20 73 61 79 20 | 20 20 20 20 20 20 20 09 | say | .|
|00003540| 3a 27 20 72 65 61 64 73 | 20 74 68 65 20 6c 61 73 |:' reads| the las|
|00003550| 74 20 31 32 20 6c 69 6e | 65 73 20 6f 66 20 74 68 |t 12 lin|es of th|
|00003560| 65 20 63 6f 6e 73 6f 6c | 65 20 77 69 6e 64 6f 77 |e consol|e window|
|00003570| 0d 20 20 20 20 20 20 20 | 20 78 20 20 3d 20 6d 61 |. | x = ma|
|00003580| 63 66 75 6e 63 74 69 6f | 6e 28 22 6e 75 6d 53 70 |cfunctio|n("numSp|
|00003590| 65 61 6b 65 72 73 22 29 | 09 3a 27 20 74 68 65 20 |eakers")|.:' the |
|000035a0| 6e 75 6d 62 65 72 20 6f | 66 20 76 6f 69 63 65 73 |number o|f voices|
|000035b0| 0d 20 20 20 20 20 20 20 | 20 76 24 20 3d 20 6d 61 |. | v$ = ma|
|000035c0| 63 66 75 6e 63 74 69 6f | 6e 28 22 67 65 74 53 70 |cfunctio|n("getSp|
|000035d0| 65 61 6b 65 72 22 29 09 | 3a 27 20 67 65 74 20 74 |eaker").|:' get t|
|000035e0| 68 65 20 76 6f 69 63 65 | 73 20 6e 61 6d 65 0d 0d |he voice|s name..|
|000035f0| 20 20 20 20 20 20 20 20 | 73 6f 75 6e 64 20 34 34 | |sound 44|
|00003600| 30 2c 20 30 2e 35 2c 20 | 33 30 09 3a 27 20 66 72 |0, 0.5, |30.:' fr|
|00003610| 65 71 2c 20 73 65 63 73 | 5f 64 75 72 61 74 69 6f |eq, secs|_duratio|
|00003620| 6e 2c 20 76 6f 6c 28 30 | 2d 31 30 30 29 0d 20 20 |n, vol(0|-100). |
|00003630| 20 20 20 20 20 20 73 6f | 75 6e 64 20 30 2c 20 38 | so|und 0, 8|
|00003640| 31 39 32 09 20 20 20 20 | 20 20 20 20 3a 27 20 70 |192. | :' p|
|00003650| 6c 61 79 20 73 6e 64 20 | 72 65 73 6f 75 72 63 65 |lay snd |resource|
|00003660| 20 23 38 31 39 32 0d 20 | 20 20 20 20 20 20 20 73 | #8192. | s|
|00003670| 6f 75 6e 64 20 2d 31 2c | 20 61 28 30 29 2c 31 31 |ound -1,| a(0),11|
|00003680| 31 30 30 20 20 20 20 3a | 27 20 70 6c 61 79 20 31 |100 :|' play 1|
|00003690| 20 73 65 63 2e 20 6f 66 | 20 73 61 6d 70 6c 65 73 | sec. of| samples|
|000036a0| 20 66 72 6f 6d 20 61 72 | 72 61 79 20 61 28 29 0d | from ar|ray a().|
|000036b0| 20 20 20 20 20 20 20 20 | 73 6f 75 6e 64 20 2d 32 | |sound -2|
|000036c0| 2c 20 6d 69 64 69 5f 76 | 6f 69 63 65 2c 20 6d 69 |, midi_v|oice, mi|
|000036d0| 64 69 5f 6b 65 79 2c 20 | 76 65 6c 6f 63 69 74 79 |di_key, |velocity|
|000036e0| 2c 20 73 65 63 73 5f 64 | 75 72 20 5b 2c 63 68 61 |, secs_d|ur [,cha|
|000036f0| 6e 6e 65 6c 5d 0d 20 20 | 20 20 20 20 20 20 20 20 |nnel]. | |
|00003700| 20 20 20 20 20 20 3a 27 | 20 70 6c 61 79 20 51 75 | :'| play Qu|
|00003710| 69 63 6b 74 69 6d 65 20 | 6d 69 64 69 20 73 79 6e |icktime |midi syn|
|00003720| 74 68 2c 20 72 65 71 75 | 69 72 65 73 20 51 75 69 |th, requ|ires Qui|
|00003730| 63 6b 74 69 6d 65 20 32 | 2e 30 0d 20 20 20 20 20 |cktime 2|.0. |
|00003740| 20 20 20 63 61 6c 6c 20 | 22 72 65 63 6f 72 64 22 | call |"record"|
|00003750| 2c 20 61 28 30 29 2c 20 | 6e 20 20 3a 27 20 72 65 |, a(0), |n :' re|
|00003760| 63 6f 72 64 73 20 6e 20 | 73 61 6d 70 6c 65 73 20 |cords n |samples |
|00003770| 6f 66 20 73 6f 75 6e 64 | 20 69 6e 74 6f 20 61 28 |of sound| into a(|
|00003780| 29 0d 0d 2d 20 4d 61 63 | 20 55 73 65 72 20 69 6e |)..- Mac| User in|
|00003790| 74 65 72 66 61 63 65 20 | 66 75 6e 63 74 69 6f 6e |terface |function|
|000037a0| 73 20 61 6e 64 20 63 6f | 6d 6d 61 6e 64 73 0d 20 |s and co|mmands. |
|000037b0| 20 20 20 20 20 20 20 0d | 20 20 20 20 20 20 20 20 | .| |
|000037c0| 63 6c 73 09 20 20 20 20 | 20 20 20 20 20 20 20 20 |cls. | |
|000037d0| 20 20 20 20 3a 20 72 65 | 6d 20 63 6c 65 61 72 73 | : re|m clears|
|000037e0| 20 63 6f 6e 73 6f 6c 65 | 20 26 20 67 72 61 70 68 | console| & graph|
|000037f0| 69 63 73 20 77 69 6e 64 | 6f 77 73 0d 20 20 20 20 |ics wind|ows. |
|00003800| 20 20 20 20 67 6f 74 6f | 78 79 20 35 2c 31 30 20 | goto|xy 5,10 |
|00003810| 3a 20 70 72 69 6e 74 20 | 22 68 65 72 65 22 20 3a |: print |"here" :|
|00003820| 20 72 65 6d 20 6d 6f 76 | 65 20 74 65 78 74 20 63 | rem mov|e text c|
|00003830| 75 72 73 6f 72 20 28 30 | 2c 30 20 6f 72 69 67 69 |ursor (0|,0 origi|
|00003840| 6e 29 0d 20 20 20 20 20 | 20 20 20 78 20 3d 20 70 |n). | x = p|
|00003850| 6f 73 28 30 29 09 20 20 | 20 20 20 20 20 20 3a 20 |os(0). | : |
|00003860| 72 65 6d 20 74 65 78 74 | 20 63 75 72 73 6f 72 20 |rem text| cursor |
|00003870| 68 6f 72 69 7a 6f 6e 74 | 61 6c 20 6c 6f 63 61 74 |horizont|al locat|
|00003880| 69 6f 6e 0d 20 20 20 20 | 20 20 20 20 79 20 3d 20 |ion. | y = |
|00003890| 70 6f 73 28 2d 31 29 09 | 20 20 20 20 20 20 20 20 |pos(-1).| |
|000038a0| 3a 20 72 65 6d 20 76 65 | 72 74 69 63 61 6c 20 74 |: rem ve|rtical t|
|000038b0| 65 78 74 20 63 75 72 73 | 6f 72 20 6c 6f 63 61 74 |ext curs|or locat|
|000038c0| 69 6f 6e 0d 0d 20 20 20 | 20 20 20 20 20 61 24 20 |ion.. | a$ |
|000038d0| 3d 20 69 6e 70 75 74 62 | 6f 78 28 22 70 72 6f 6d |= inputb|ox("prom|
|000038e0| 70 74 22 2c 20 22 74 69 | 74 6c 65 22 2c 20 22 64 |pt", "ti|tle", "d|
|000038f0| 65 66 61 75 6c 74 22 2c | 20 30 29 0d 20 20 20 20 |efault",| 0). |
|00003900| 20 20 20 20 20 20 20 20 | 20 20 20 20 3a 27 20 67 | | :' g|
|00003910| 65 74 73 20 73 74 72 69 | 6e 67 20 69 6e 70 75 74 |ets stri|ng input|
|00003920| 20 75 73 69 6e 67 20 64 | 65 66 61 75 6c 74 20 64 | using d|efault d|
|00003930| 69 61 6c 6f 67 0d 20 20 | 20 20 20 20 20 20 61 24 |ialog. | a$|
|00003940| 20 3d 20 69 6e 70 75 74 | 62 6f 78 28 22 70 72 6f | = input|box("pro|
|00003950| 6d 70 74 22 2c 20 22 74 | 69 74 6c 65 22 2c 20 22 |mpt", "t|itle", "|
|00003960| 64 65 66 61 75 6c 74 22 | 2c 20 69 64 29 0d 20 20 |default"|, id). |
|00003970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3a 27 | | :'|
|00003980| 20 69 66 20 69 64 20 3e | 20 31 30 32 34 20 74 68 | if id >| 1024 th|
|00003990| 69 73 20 77 69 6c 6c 20 | 75 73 65 20 61 20 63 75 |is will |use a cu|
|000039a0| 73 74 6f 6d 20 44 4c 4f | 47 20 23 69 64 0d 20 20 |stom DLO|G #id. |
|000039b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3a 27 | | :'|
|000039c0| 20 20 20 20 77 69 74 68 | 20 69 74 65 6d 20 31 20 | with| item 1 |
|000039d0| 3d 20 4f 4b 2c 20 69 74 | 65 6d 20 32 20 3d 20 63 |= OK, it|em 2 = c|
|000039e0| 61 6e 63 65 6c 0d 20 20 | 20 20 20 20 20 20 20 20 |ancel. | |
|000039f0| 20 20 20 20 20 20 3a 27 | 20 20 20 20 70 72 6f 6d | :'| prom|
|00003a00| 70 74 20 72 65 70 6c 61 | 63 65 73 20 31 73 74 20 |pt repla|ces 1st |
|00003a10| 73 74 61 74 69 63 20 74 | 65 78 74 20 69 74 65 6d |static t|ext item|
|00003a20| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003a30| 20 3a 27 20 20 20 20 64 | 65 66 61 75 6c 74 20 72 | :' d|efault r|
|00003a40| 65 70 6c 61 63 65 73 20 | 31 73 74 20 65 64 69 74 |eplaces |1st edit|
|00003a50| 20 74 65 78 74 20 69 74 | 65 6d 0d 20 20 20 20 20 | text it|em. |
|00003a60| 20 20 20 20 20 20 20 20 | 20 20 20 0d 20 20 20 20 | | . |
|00003a70| 20 20 20 20 63 61 6c 6c | 20 22 62 69 67 66 6f 6e | call| "bigfon|
|00003a80| 74 22 09 20 20 20 20 20 | 20 20 20 3a 27 20 74 6f |t". | :' to|
|00003a90| 67 67 6c 65 73 20 42 49 | 47 46 4f 4e 54 20 63 6f |ggles BI|GFONT co|
|00003aa0| 6e 73 6f 6c 65 20 6f 75 | 74 70 75 74 20 73 74 61 |nsole ou|tput sta|
|00003ab0| 74 75 73 0d 20 20 20 20 | 20 20 20 20 63 61 6c 6c |tus. | call|
|00003ac0| 20 22 68 69 64 65 4d 65 | 6e 75 42 61 72 22 09 3a | "hideMe|nuBar".:|
|00003ad0| 27 20 68 69 64 65 73 20 | 6d 65 6e 75 62 61 72 2e |' hides |menubar.|
|00003ae0| 20 67 72 61 70 68 69 63 | 73 20 2d 31 20 74 6f 20 | graphic|s -1 to |
|00003af0| 72 65 73 74 6f 72 65 2e | 0d 20 20 20 20 20 20 20 |restore.|. |
|00003b00| 20 63 61 6c 6c 20 22 77 | 69 6e 74 69 74 6c 65 22 | call "w|intitle"|
|00003b10| 2c 20 74 24 09 3a 27 20 | 6a 75 73 74 20 73 65 74 |, t$.:' |just set|
|00003b20| 73 20 74 68 65 20 67 72 | 61 70 68 69 63 73 20 77 |s the gr|aphics w|
|00003b30| 69 6e 64 6f 77 20 74 69 | 74 6c 65 0d 0d 20 20 20 |indow ti|tle.. |
|00003b40| 20 20 20 20 20 6d 6f 75 | 73 65 28 30 29 20 20 20 | mou|se(0) |
|00003b50| 20 20 20 20 20 27 20 72 | 65 74 75 72 6e 73 20 31 | ' r|eturns 1|
|00003b60| 20 69 66 20 74 68 65 20 | 6d 6f 75 73 65 20 62 75 | if the |mouse bu|
|00003b70| 74 74 6f 6e 20 69 73 20 | 64 6f 77 6e 0d 20 20 20 |tton is |down. |
|00003b80| 20 20 20 20 20 6d 6f 75 | 73 65 28 31 29 20 20 20 | mou|se(1) |
|00003b90| 20 20 20 20 20 27 20 78 | 20 63 6f 6f 72 64 69 6e | ' x| coordin|
|00003ba0| 61 74 65 20 69 6e 20 63 | 75 72 72 65 6e 74 20 77 |ate in c|urrent w|
|00003bb0| 69 6e 64 6f 77 0d 20 20 | 20 20 20 20 20 20 6d 6f |indow. | mo|
|00003bc0| 75 73 65 28 32 29 20 20 | 20 20 20 20 20 20 27 20 |use(2) | ' |
|00003bd0| 79 20 63 6f 6f 72 64 69 | 6e 61 74 65 20 69 6e 20 |y coordi|nate in |
|00003be0| 63 75 72 72 65 6e 74 20 | 77 69 6e 64 6f 77 0d 20 |current |window. |
|00003bf0| 20 20 20 20 20 20 20 6d | 6f 75 73 65 28 33 29 20 | m|ouse(3) |
|00003c00| 20 20 20 20 20 20 20 27 | 20 6c 61 73 74 20 78 20 | '| last x |
|00003c10| 63 6c 69 63 6b 20 6c 6f | 63 61 74 69 6f 6e 20 28 |click lo|cation (|
|00003c20| 73 65 74 20 74 6f 20 2d | 31 20 61 66 74 65 72 20 |set to -|1 after |
|00003c30| 72 65 61 64 29 0d 20 20 | 20 20 20 20 20 20 6d 6f |read). | mo|
|00003c40| 75 73 65 28 34 29 20 20 | 20 20 20 20 20 20 27 20 |use(4) | ' |
|00003c50| 6c 61 73 74 20 79 20 63 | 6c 69 63 6b 20 6c 6f 63 |last y c|lick loc|
|00003c60| 61 74 69 6f 6e 20 28 73 | 65 74 20 74 6f 20 2d 31 |ation (s|et to -1|
|00003c70| 20 61 66 74 65 72 20 72 | 65 61 64 29 0d 20 20 20 | after r|ead). |
|00003c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3a 27 20 | | :' |
|00003c90| 6d 6f 75 73 65 28 29 20 | 6d 75 73 74 20 66 6f 6c |mouse() |must fol|
|00003ca0| 6c 6f 77 20 61 20 67 72 | 61 70 68 69 63 73 20 63 |low a gr|aphics c|
|00003cb0| 6f 6d 6d 61 6e 64 0d 20 | 20 20 20 20 20 20 20 20 |ommand. | |
|00003cc0| 20 20 20 20 20 20 20 3a | 27 20 20 20 74 6f 20 67 | :|' to g|
|00003cd0| 65 74 20 61 20 6c 6f 63 | 61 74 69 6f 6e 20 69 6e |et a loc|ation in|
|00003ce0| 20 74 68 65 20 67 72 61 | 70 68 69 63 73 20 77 69 | the gra|phics wi|
|00003cf0| 6e 64 6f 77 2e 0d 0d 20 | 20 20 20 20 20 20 20 67 |ndow... | g|
|00003d00| 72 61 70 68 69 63 73 20 | 42 55 54 54 4f 4e 20 74 |raphics |BUTTON t|
|00003d10| 69 74 6c 65 24 2c 78 2c | 79 2c 77 2c 68 2c 6b 65 |itle$,x,|y,w,h,ke|
|00003d20| 79 5f 63 6f 64 65 0d 20 | 20 20 20 20 20 20 20 20 |y_code. | |
|00003d30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3a | | :|
|00003d40| 27 20 64 72 61 77 20 61 | 20 73 74 61 6e 64 61 72 |' draw a| standar|
|00003d50| 64 20 62 75 74 74 6f 6e | 20 61 74 20 28 78 2c 79 |d button| at (x,y|
|00003d60| 29 20 73 69 7a 65 20 28 | 77 2c 68 29 0d 20 20 20 |) size (|w,h). |
|00003d70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003d80| 20 20 20 20 20 3a 27 20 | 77 69 6c 6c 20 69 6e 70 | :' |will inp|
|00003d90| 75 74 20 63 68 72 24 28 | 6b 65 79 5f 63 6f 64 65 |ut chr$(|key_code|
|00003da0| 29 20 77 68 65 6e 20 70 | 72 65 73 73 65 64 0d 20 |) when p|ressed. |
|00003db0| 20 20 20 20 20 20 20 67 | 72 61 70 68 69 63 73 20 | g|raphics |
|00003dc0| 42 55 54 54 4f 4e 20 74 | 69 74 6c 65 24 2c 78 2c |BUTTON t|itle$,x,|
|00003dd0| 79 2c 77 2c 68 2c 65 24 | 0d 20 20 20 20 20 20 20 |y,w,h,e$|. |
|00003de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003df0| 20 3a 27 20 62 75 74 74 | 6f 6e 20 77 69 6c 6c 20 | :' butt|on will |
|00003e00| 65 78 65 63 28 65 24 29 | 20 77 68 65 6e 20 70 72 |exec(e$)| when pr|
|00003e10| 65 73 73 65 64 0d 20 20 | 20 20 20 20 20 20 67 72 |essed. | gr|
|00003e20| 61 70 68 69 63 73 20 42 | 55 54 54 4f 4e 20 22 22 |aphics B|UTTON ""|
|00003e30| 2c 78 2c 79 2c 77 2c 68 | 2c 65 24 09 3a 27 20 74 |,x,y,w,h|,e$.:' t|
|00003e40| 72 61 6e 73 70 61 72 65 | 6e 74 20 62 75 74 74 6f |ranspare|nt butto|
|00003e50| 6e 0d 20 20 20 20 20 20 | 20 20 67 72 61 70 68 69 |n. | graphi|
|00003e60| 63 73 20 42 55 54 54 4f | 4e 20 22 22 2c 78 2c 79 |cs BUTTO|N "",x,y|
|00003e70| 2c 69 64 2c 65 24 2c 2d | 34 09 3a 27 20 63 69 63 |,id,e$,-|4.:' cic|
|00003e80| 6e 20 6f 72 20 49 43 4e | 23 20 69 64 20 62 75 74 |n or ICN|# id but|
|00003e90| 74 6f 6e 0d 20 20 20 20 | 20 20 20 20 67 72 61 70 |ton. | grap|
|00003ea0| 68 69 63 73 20 42 55 54 | 54 4f 4e 20 22 22 2c 2d |hics BUT|TON "",-|
|00003eb0| 31 09 20 20 20 20 20 20 | 20 20 3a 27 20 72 65 6d |1. | :' rem|
|00003ec0| 6f 76 65 20 61 6c 6c 20 | 62 75 74 74 6f 6e 73 20 |ove all |buttons |
|00003ed0| 26 20 73 6c 69 64 65 72 | 73 0d 0d 20 20 20 20 20 |& slider|s.. |
|00003ee0| 20 20 20 6d 65 6e 75 20 | 34 2c 20 74 69 74 6c 65 | menu |4, title|
|00003ef0| 24 2c 20 69 74 65 6d 6c | 69 73 74 24 2c 20 65 76 |$, iteml|ist$, ev|
|00003f00| 65 6e 74 6c 69 73 74 24 | 09 20 20 20 20 20 20 20 |entlist$|. |
|00003f10| 20 20 3a 27 20 73 65 74 | 75 70 20 6d 65 6e 75 0d | :' set|up menu.|
|00003f20| 20 20 20 20 20 20 20 20 | 6d 65 6e 75 20 34 2c 20 | |menu 4, |
|00003f30| 22 6d 79 4d 65 6e 75 22 | 2c 20 22 69 74 65 6d 31 |"myMenu"|, "item1|
|00003f40| 3b 69 74 65 6d 32 22 2c | 20 22 66 6f 6f 31 28 29 |;item2",| "foo1()|
|00003f50| 3b 66 6f 6f 32 28 29 22 | 20 3a 27 20 65 78 61 6d |;foo2()"| :' exam|
|00003f60| 70 6c 65 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ple. | |
|00003f70| 20 20 20 20 3a 27 20 73 | 65 74 73 20 75 70 20 74 | :' s|ets up t|
|00003f80| 68 65 20 34 74 68 20 6d | 65 6e 75 20 28 6f 6e 6c |he 4th m|enu (onl|
|00003f90| 79 20 34 74 68 20 6d 65 | 6e 75 20 69 73 20 69 6d |y 4th me|nu is im|
|00003fa0| 70 6c 65 6d 65 6e 74 65 | 64 2e 29 0d 20 20 20 20 |plemente|d.). |
|00003fb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 3a 27 20 63 | | :' c|
|00003fc0| 61 6c 6c 73 20 79 6f 75 | 72 20 73 75 62 72 6f 75 |alls you|r subrou|
|00003fd0| 74 69 6e 65 73 20 66 6f | 6f 31 28 29 20 26 20 66 |tines fo|o1() & f|
|00003fe0| 6f 6f 32 28 29 20 6f 6e | 20 6d 65 6e 75 20 73 65 |oo2() on| menu se|
|00003ff0| 6c 65 63 74 2e 0d 20 20 | 20 20 20 20 20 20 20 20 |lect.. | |
|00004000| 20 20 20 20 20 20 3a 27 | 20 73 75 62 72 6f 75 74 | :'| subrout|
|00004010| 69 6e 65 73 20 6d 75 73 | 74 20 62 65 20 70 72 65 |ines mus|t be pre|
|00004020| 76 69 6f 75 73 6c 79 20 | 64 65 66 69 6e 65 64 2e |viously |defined.|
|00004030| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004040| 20 3a 27 20 73 65 65 20 | 41 70 70 6c 65 20 64 6f | :' see |Apple do|
|00004050| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 66 6f 72 20 |cumentat|ion for |
|00004060| 6d 65 6e 75 20 6f 70 74 | 69 6f 6e 73 0d 20 20 20 |menu opt|ions. |
|00004070| 20 20 20 20 20 6d 65 6e | 75 20 34 2c 20 22 22 20 | men|u 4, "" |
|00004080| 20 20 20 20 20 20 20 3a | 27 20 72 65 6d 6f 76 65 | :|' remove|
|00004090| 73 20 79 6f 75 72 20 6d | 65 6e 75 0d 20 20 20 20 |s your m|enu. |
|000040a0| 20 20 20 20 64 6f 65 76 | 65 6e 74 73 28 29 20 20 | doev|ents() |
|000040b0| 20 20 20 20 20 20 3a 27 | 20 70 6f 6c 6c 20 66 6f | :'| poll fo|
|000040c0| 72 20 62 75 74 74 6f 6e | 20 61 6e 64 20 6d 65 6e |r button| and men|
|000040d0| 75 20 65 76 65 6e 74 73 | 0d 0d 2d 20 41 64 64 69 |u events|..- Addi|
|000040e0| 74 69 6f 6e 61 6c 20 4d | 61 63 20 73 70 65 63 69 |tional M|ac speci|
|000040f0| 66 69 63 20 66 75 6e 63 | 74 69 6f 6e 73 20 61 6e |fic func|tions an|
|00004100| 64 20 63 6f 6d 6d 61 6e | 64 73 3a 0d 0d 20 20 20 |d comman|ds:.. |
|00004110| 20 20 20 20 20 6f 70 65 | 6e 20 22 53 46 47 65 74 | ope|n "SFGet|
|00004120| 46 69 6c 65 22 20 66 6f | 72 20 69 6e 70 75 74 20 |File" fo|r input |
|00004130| 61 73 20 23 32 20 20 20 | 20 3a 27 20 22 53 46 50 |as #2 | :' "SFP|
|00004140| 75 74 46 69 6c 65 22 20 | 66 6f 72 20 6f 75 74 70 |utFile" |for outp|
|00004150| 75 74 0d 20 20 20 20 20 | 20 20 20 6f 70 65 6e 20 |ut. | open |
|00004160| 22 43 4f 4d 31 3a 22 20 | 66 6f 72 20 69 6e 70 75 |"COM1:" |for inpu|
|00004170| 74 20 61 73 20 23 31 09 | 20 20 20 20 3a 27 20 20 |t as #1.| :' |
|00004180| 75 73 65 73 20 43 54 42 | 20 53 65 72 69 61 6c 20 |uses CTB| Serial |
|00004190| 54 6f 6f 6c 0d 20 20 20 | 20 20 20 20 20 6f 70 65 |Tool. | ope|
|000041a0| 6e 20 22 43 4f 4d 33 3a | 20 39 36 30 30 22 20 66 |n "COM3:| 9600" f|
|000041b0| 6f 72 20 69 6e 70 75 74 | 20 61 73 20 23 33 20 20 |or input| as #3 |
|000041c0| 20 3a 27 20 20 75 73 65 | 73 20 73 65 72 69 61 6c | :' use|s serial|
|000041d0| 20 64 72 69 76 65 72 0d | 20 20 20 20 20 20 20 20 | driver.| |
|000041e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000041f0| 3a 27 20 2a 2a 20 74 68 | 65 20 61 62 6f 76 65 20 |:' ** th|e above |
|00004200| 66 69 6c 65 20 6e 61 6d | 65 73 20 61 72 65 20 63 |file nam|es are c|
|00004210| 61 73 65 20 73 65 6e 73 | 69 74 69 76 65 20 2a 2a |ase sens|itive **|
|00004220| 0d 20 20 20 20 20 20 20 | 20 6f 70 65 6e 20 66 24 |. | open f$|
|00004230| 20 66 6f 72 20 64 61 74 | 61 20 69 6e 70 75 74 20 | for dat|a input |
|00004240| 61 73 20 23 34 09 3a 27 | 20 64 61 74 61 20 66 69 |as #4.:'| data fi|
|00004250| 6c 65 2c 20 6e 6f 20 63 | 72 2d 6c 66 20 74 72 61 |le, no c|r-lf tra|
|00004260| 6e 73 6c 61 74 69 6f 6e | 0d 20 20 20 20 20 20 20 |nslation|. |
|00004270| 20 6f 70 65 6e 20 66 24 | 20 66 6f 72 20 64 61 74 | open f$| for dat|
|00004280| 61 20 69 6e 70 75 74 09 | 20 20 20 20 3a 27 20 75 |a input.| :' u|
|00004290| 73 65 20 66 69 6c 65 20 | 66 6f 72 20 72 65 73 6f |se file |for reso|
|000042a0| 75 72 63 65 73 2c 20 70 | 69 63 74 73 2c 20 65 74 |urces, p|icts, et|
|000042b0| 63 2e 0d 20 20 20 20 20 | 20 20 20 61 24 20 3d 20 |c.. | a$ = |
|000042c0| 66 69 65 6c 64 24 28 22 | 61 61 20 62 62 20 63 63 |field$("|aa bb cc|
|000042d0| 22 2c 20 32 2c 22 20 22 | 29 09 3a 27 20 72 65 74 |", 2," "|).:' ret|
|000042e0| 75 72 6e 73 20 22 62 62 | 22 2c 20 28 61 77 6b 20 |urns "bb|", (awk |
|000042f0| 66 69 65 6c 64 73 29 0d | 0d 20 20 20 20 20 20 20 |fields).|. |
|00004300| 20 63 61 6c 6c 20 22 62 | 69 67 66 6f 6e 74 22 09 | call "b|igfont".|
|00004310| 20 20 20 20 20 20 20 20 | 3a 27 20 54 6f 67 67 6c | |:' Toggl|
|00004320| 65 20 74 68 65 20 42 49 | 47 46 4f 4e 54 20 63 6f |e the BI|GFONT co|
|00004330| 6e 73 6f 6c 65 20 6f 75 | 74 70 75 74 20 6d 6f 64 |nsole ou|tput mod|
|00004340| 65 0d 20 20 20 20 20 20 | 20 20 63 61 6c 6c 20 22 |e. | call "|
|00004350| 4e 6f 4c 69 6e 65 4e 75 | 6d 73 22 2c 31 09 3a 27 |NoLineNu|ms",1.:'|
|00004360| 20 74 75 72 6e 73 20 6f | 66 66 20 6c 69 6e 65 20 | turns o|ff line |
|00004370| 6e 75 6d 62 65 72 73 20 | 69 6e 20 6c 69 73 74 20 |numbers |in list |
|00004380| 26 20 73 61 76 65 0d 20 | 20 20 20 20 20 20 20 63 |& save. | c|
|00004390| 61 6c 6c 20 22 77 61 69 | 74 22 2c 20 6e 09 20 20 |all "wai|t", n. |
|000043a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3a 27 | | :'|
|000043b0| 20 77 61 69 74 73 20 66 | 6f 72 20 6e 20 73 65 63 | waits f|or n sec|
|000043c0| 6f 6e 64 73 0d 20 20 20 | 20 20 20 20 20 63 61 6c |onds. | cal|
|000043d0| 6c 20 22 70 72 69 6e 74 | 54 65 78 74 22 20 20 3a |l "print|Text" :|
|000043e0| 27 20 73 65 6e 64 73 20 | 6c 61 73 74 20 7e 36 36 |' sends |last ~66|
|000043f0| 20 63 6f 6e 73 6f 6c 65 | 20 6c 69 6e 65 73 20 74 | console| lines t|
|00004400| 6f 20 70 72 69 6e 74 65 | 72 0d 0d 20 20 20 20 20 |o printe|r.. |
|00004410| 20 20 20 63 61 6c 6c 20 | 22 70 75 74 50 72 65 66 | call |"putPref|
|00004420| 22 2c 22 35 31 32 22 2c | 37 09 3a 27 20 69 6e 63 |","512",|7.:' inc|
|00004430| 72 65 61 73 65 20 73 63 | 72 6f 6c 6c 62 61 63 6b |rease sc|rollback|
|00004440| 20 62 75 66 66 65 72 20 | 74 6f 20 35 31 32 0d 20 | buffer |to 512. |
|00004450| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3a | | :|
|00004460| 27 20 79 6f 75 20 77 69 | 6c 6c 20 6e 65 65 64 20 |' you wi|ll need |
|00004470| 74 6f 20 69 6e 63 72 65 | 61 73 65 20 74 68 65 20 |to incre|ase the |
|00004480| 70 72 65 66 65 72 72 65 | 64 20 6d 65 6d 6f 72 79 |preferre|d memory|
|00004490| 20 73 69 7a 65 0d 20 20 | 20 20 20 20 20 20 20 20 | size. | |
|000044a0| 20 20 20 20 20 20 3a 27 | 20 62 79 20 31 4b 20 66 | :'| by 1K f|
|000044b0| 6f 72 20 65 76 65 72 79 | 20 2b 31 30 20 6c 69 6e |or every| +10 lin|
|000044c0| 65 73 20 61 62 6f 76 65 | 20 32 35 36 0d 20 20 20 |es above| 256. |
|000044d0| 20 20 20 20 20 63 61 6c | 6c 20 22 73 65 6e 64 62 | cal|l "sendb|
|000044e0| 72 65 61 6b 22 2c 74 20 | 20 3a 27 20 73 65 72 69 |reak",t | :' seri|
|000044f0| 61 6c 20 70 6f 72 74 20 | 62 72 65 61 6b 20 66 6f |al port |break fo|
|00004500| 72 20 74 20 74 69 63 6b | 73 20 28 6f 70 65 6e 20 |r t tick|s (open |
|00004510| 31 73 74 29 0d 20 20 20 | 20 20 20 20 20 63 61 6c |1st). | cal|
|00004520| 6c 20 76 61 72 70 74 72 | 28 61 25 28 30 29 29 09 |l varptr|(a%(0)).|
|00004530| 3a 27 20 63 61 6c 6c 73 | 20 36 38 6b 20 63 6f 64 |:' calls| 68k cod|
|00004540| 65 20 6c 6f 63 61 74 65 | 64 20 69 6e 20 61 72 72 |e locate|d in arr|
|00004550| 61 79 20 61 25 0d 20 20 | 20 20 20 20 20 20 20 20 |ay a%. | |
|00004560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004570| 20 20 20 20 20 20 3a 27 | 20 36 38 6b 20 63 6f 64 | :'| 68k cod|
|00004580| 65 20 77 6f 72 6b 73 20 | 65 76 65 6e 20 6f 6e 20 |e works |even on |
|00004590| 50 50 43 0d 20 20 20 20 | 20 20 20 20 63 61 6c 6c |PPC. | call|
|000045a0| 20 2d 31 35 31 20 20 20 | 20 20 20 20 20 3a 27 20 | -151 | :' |
|000045b0| 64 72 6f 70 73 20 69 6e | 74 6f 20 4d 61 63 73 42 |drops in|to MacsB|
|000045c0| 75 67 20 28 6d 75 73 74 | 20 62 65 20 69 6e 73 74 |ug (must| be inst|
|000045d0| 61 6c 6c 65 64 20 21 21 | 21 29 0d 20 20 20 20 20 |alled !!|!). |
|000045e0| 20 20 20 63 61 6c 6c 20 | 22 62 65 65 70 22 2c 20 | call |"beep", |
|000045f0| 69 20 20 3a 27 20 63 61 | 6c 6c 73 20 42 43 4d 44 |i :' ca|lls BCMD|
|00004600| 20 72 65 73 6f 75 72 63 | 65 20 22 62 65 65 70 22 | resourc|e "beep"|
|00004610| 20 77 69 74 68 20 31 20 | 2a 6c 6f 6e 67 20 70 61 | with 1 |*long pa|
|00004620| 72 61 6d 0d 20 20 20 20 | 20 20 20 20 72 65 70 6c |ram. | repl|
|00004630| 79 24 20 3d 20 6d 61 63 | 66 75 6e 63 74 69 6f 6e |y$ = mac|function|
|00004640| 28 22 47 65 73 74 61 6c | 74 22 2c 22 63 70 75 74 |("Gestal|t","cput|
|00004650| 22 29 20 20 3a 27 20 73 | 79 73 74 65 6d 20 67 65 |") :' s|ystem ge|
|00004660| 73 74 61 6c 74 20 69 6e | 66 6f 0d 20 20 20 20 20 |stalt in|fo. |
|00004670| 20 20 20 78 20 3d 20 6d | 61 63 66 75 6e 63 74 69 | x = m|acfuncti|
|00004680| 6f 6e 28 22 6b 65 79 64 | 6f 77 6e 22 2c 20 30 78 |on("keyd|own", 0x|
|00004690| 33 61 29 20 20 20 20 20 | 20 20 20 20 3a 27 20 74 |3a) | :' t|
|000046a0| 65 73 74 20 6f 70 74 69 | 6f 6e 20 6b 65 79 0d 20 |est opti|on key. |
|000046b0| 20 20 20 20 20 20 20 73 | 24 20 3d 20 6d 61 63 66 | s|$ = macf|
|000046c0| 75 6e 63 74 69 6f 6e 28 | 22 67 65 74 63 6c 69 70 |unction(|"getclip|
|000046d0| 73 74 72 22 29 09 20 20 | 20 20 20 20 20 20 3a 27 |str"). | :'|
|000046e0| 20 67 65 74 20 63 6c 69 | 70 62 6f 61 72 64 20 74 | get cli|pboard t|
|000046f0| 65 78 74 0d 20 20 20 20 | 20 20 20 20 63 61 6c 6c |ext. | call|
|00004700| 20 22 70 75 74 73 74 72 | 32 63 6c 69 70 22 2c 20 | "putstr|2clip", |
|00004710| 73 24 09 20 20 20 20 20 | 20 20 20 3a 27 20 70 75 |s$. | :' pu|
|00004720| 74 20 63 6c 69 70 20 69 | 66 20 69 6e 20 66 6f 72 |t clip i|f in for|
|00004730| 65 67 72 6f 75 6e 64 0d | 0d 20 20 20 20 20 20 20 |eground.|. |
|00004740| 20 76 72 65 66 20 3d 20 | 6d 61 63 66 75 6e 63 74 | vref = |macfunct|
|00004750| 69 6f 6e 28 22 6c 61 73 | 74 56 52 65 66 4e 75 6d |ion("las|tVRefNum|
|00004760| 22 29 0d 20 20 20 20 20 | 20 20 20 70 61 72 20 20 |"). | par |
|00004770| 3d 20 6d 61 63 66 75 6e | 63 74 69 6f 6e 28 22 6c |= macfun|ction("l|
|00004780| 61 73 74 50 61 72 49 44 | 22 29 0d 20 20 20 20 20 |astParID|"). |
|00004790| 20 20 20 20 20 20 20 20 | 20 20 20 3a 27 20 67 65 | | :' ge|
|000047a0| 74 73 20 76 52 65 66 4e | 75 6d 20 26 20 50 61 72 |ts vRefN|um & Par|
|000047b0| 49 44 20 6f 66 20 74 68 | 65 20 6c 61 73 74 20 53 |ID of th|e last S|
|000047c0| 46 47 65 74 46 69 6c 65 | 0d 20 20 20 20 20 20 20 |FGetFile|. |
|000047d0| 20 20 20 20 20 20 20 20 | 20 3a 27 20 6f 72 20 74 | | :' or t|
|000047e0| 68 65 20 63 75 72 72 65 | 6e 74 20 64 72 6f 70 70 |he curre|nt dropp|
|000047f0| 65 64 20 70 72 6f 67 72 | 61 6d 20 28 53 79 73 74 |ed progr|am (Syst|
|00004800| 65 6d 20 37 20 6f 6e 6c | 79 29 0d 20 20 20 20 20 |em 7 onl|y). |
|00004810| 20 20 20 76 72 65 66 20 | 3d 20 6d 61 63 66 75 6e | vref |= macfun|
|00004820| 63 74 69 6f 6e 28 22 70 | 72 65 66 56 52 65 66 4e |ction("p|refVRefN|
|00004830| 75 6d 22 29 0d 20 20 20 | 20 20 20 20 20 70 61 72 |um"). | par|
|00004840| 20 20 3d 20 6d 61 63 66 | 75 6e 63 74 69 6f 6e 28 | = macf|unction(|
|00004850| 22 70 72 65 66 50 61 72 | 49 44 22 29 09 3a 27 20 |"prefPar|ID").:' |
|00004860| 70 72 65 66 65 72 65 6e | 63 65 73 20 66 6f 6c 64 |preferen|ces fold|
|00004870| 65 72 0d 20 20 20 20 20 | 20 20 20 66 69 6c 65 73 |er. | files|
|00004880| 20 76 72 65 66 2c 20 70 | 61 72 09 20 20 20 20 20 | vref, p|ar. |
|00004890| 20 20 20 20 20 20 20 20 | 20 20 20 3a 27 20 73 65 | | :' se|
|000048a0| 74 73 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 64 |ts the d|efault d|
|000048b0| 69 72 0d 20 20 20 20 20 | 20 20 20 66 69 6c 65 73 |ir. | files|
|000048c0| 20 64 69 72 6e 61 6d 65 | 24 2c 20 64 75 6d 6d 79 | dirname|$, dummy|
|000048d0| 24 09 20 20 20 20 20 20 | 20 20 3a 27 20 61 6c 73 |$. | :' als|
|000048e0| 6f 20 73 65 74 73 20 64 | 65 66 61 75 6c 74 20 64 |o sets d|efault d|
|000048f0| 69 72 0d 0d 20 20 20 20 | 20 20 20 20 63 61 6c 6c |ir.. | call|
|00004900| 20 22 6c 61 75 6e 63 68 | 22 2c 20 61 70 70 6e 61 | "launch|", appna|
|00004910| 6d 65 24 20 20 20 20 20 | 20 20 20 20 3a 27 20 6c |me$ | :' l|
|00004920| 61 75 6e 63 68 20 61 6e | 20 61 70 70 20 69 6e 20 |aunch an| app in |
|00004930| 6c 6f 63 61 6c 20 64 69 | 72 0d 20 20 20 20 20 20 |local di|r. |
|00004940| 20 20 63 61 6c 6c 20 22 | 73 65 74 66 69 6c 65 74 | call "|setfilet|
|00004950| 79 70 65 22 2c 20 66 6e | 61 6d 65 24 2c 20 22 54 |ype", fn|ame$, "T|
|00004960| 45 58 54 22 20 20 20 20 | 20 20 20 20 3a 27 20 73 |EXT" | :' s|
|00004970| 65 74 20 66 74 79 70 65 | 0d 0d 20 20 20 20 20 20 |et ftype|.. |
|00004980| 20 20 6d 61 63 66 75 6e | 63 74 69 6f 6e 28 22 72 | macfun|ction("r|
|00004990| 73 72 63 6c 6f 61 64 22 | 2c 66 6e 61 6d 65 24 2c |srcload"|,fname$,|
|000049a0| 20 72 74 79 70 65 24 2c | 20 69 64 2c 20 69 25 28 | rtype$,| id, i%(|
|000049b0| 30 29 2c 20 73 69 7a 65 | 6c 69 6d 2c 20 32 29 0d |0), size|lim, 2).|
|000049c0| 20 20 20 20 20 20 20 20 | 09 3a 27 20 6c 6f 61 64 | |.:' load|
|000049d0| 73 20 72 73 72 63 20 64 | 61 74 61 20 69 6e 74 6f |s rsrc d|ata into|
|000049e0| 20 61 6e 20 69 6e 74 65 | 67 65 72 20 61 72 72 61 | an inte|ger arra|
|000049f0| 79 20 26 20 72 65 74 75 | 72 6e 73 20 73 69 7a 65 |y & retu|rns size|
|00004a00| 0d 20 20 20 20 20 20 20 | 20 6d 61 63 66 75 6e 63 |. | macfunc|
|00004a10| 74 69 6f 6e 28 22 72 73 | 72 63 73 61 76 65 22 2c |tion("rs|rcsave",|
|00004a20| 66 69 6c 65 6e 61 6d 65 | 24 2c 20 72 65 73 74 79 |filename|$, resty|
|00004a30| 70 65 24 2c 20 72 65 73 | 5f 69 64 2c 20 69 25 28 |pe$, res|_id, i%(|
|00004a40| 30 29 2c 20 73 69 7a 65 | 29 0d 20 20 20 20 20 20 |0), size|). |
|00004a50| 20 20 09 3a 27 20 73 61 | 76 65 73 20 74 68 65 20 | .:' sa|ves the |
|00004a60| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 61 6e 20 69 |contents| of an i|
|00004a70| 6e 74 65 67 65 72 20 61 | 72 72 61 79 20 61 73 20 |nteger a|rray as |
|00004a80| 61 20 72 65 73 6f 75 72 | 63 65 0d 0d 20 20 20 20 |a resour|ce.. |
|00004a90| 20 20 20 20 66 72 65 09 | 3a 27 20 72 65 74 75 72 | fre.|:' retur|
|00004aa0| 6e 73 20 61 76 61 69 6c | 61 62 6c 65 20 68 65 61 |ns avail|able hea|
|00004ab0| 70 20 6d 65 6d 6f 72 79 | 2e 0d 20 20 20 20 20 20 |p memory|.. |
|00004ac0| 20 20 20 20 20 20 20 20 | 20 20 3a 27 20 49 66 20 | | :' If |
|00004ad0| 74 68 69 73 20 67 65 74 | 73 20 6d 75 63 68 20 62 |this get|s much b|
|00004ae0| 65 6c 6f 77 20 33 32 4b | 2c 20 79 6f 75 20 73 68 |elow 32K|, you sh|
|00004af0| 6f 75 6c 64 20 69 6e 63 | 72 65 61 73 65 20 74 68 |ould inc|rease th|
|00004b00| 65 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e. | |
|00004b10| 20 20 3a 27 20 50 72 65 | 66 65 72 72 65 64 20 73 | :' Pre|ferred s|
|00004b20| 69 7a 65 20 75 73 69 6e | 67 20 46 69 6e 64 65 72 |ize usin|g Finder|
|00004b30| 20 47 65 74 20 49 6e 66 | 6f 20 26 20 72 65 73 74 | Get Inf|o & rest|
|00004b40| 61 72 74 20 42 61 73 69 | 63 2e 0d 0d 2d 20 53 65 |art Basi|c...- Se|
|00004b50| 6e 64 69 6e 67 20 41 70 | 70 6c 65 53 63 72 69 70 |nding Ap|pleScrip|
|00004b60| 74 73 20 61 6e 64 20 41 | 70 70 6c 65 45 76 65 6e |ts and A|ppleEven|
|00004b70| 74 73 0d 0d 20 20 20 20 | 20 20 20 20 63 61 6c 6c |ts.. | call|
|00004b80| 20 22 64 6f 73 63 72 69 | 70 74 22 2c 20 61 70 70 | "doscri|pt", app|
|00004b90| 6e 61 6d 65 24 2c 20 73 | 63 72 69 70 74 24 09 3a |name$, s|cript$.:|
|00004ba0| 27 20 73 65 6e 64 20 61 | 20 44 6f 53 63 72 69 70 |' send a| DoScrip|
|00004bb0| 74 20 41 45 0d 20 20 20 | 20 20 20 20 20 6d 61 63 |t AE. | mac|
|00004bc0| 66 75 6e 63 74 69 6f 6e | 28 22 64 6f 73 63 72 69 |function|("doscri|
|00004bd0| 70 74 22 2c 20 61 70 70 | 24 2c 20 73 63 72 69 70 |pt", app|$, scrip|
|00004be0| 74 24 29 09 3a 27 20 67 | 65 74 73 20 72 65 73 75 |t$).:' g|ets resu|
|00004bf0| 6c 74 20 66 72 6f 6d 20 | 41 45 0d 20 20 20 20 20 |lt from |AE. |
|00004c00| 20 20 20 63 61 6c 6c 20 | 22 64 6f 73 63 72 69 70 | call |"doscrip|
|00004c10| 74 22 2c 20 61 70 70 5f | 73 69 67 24 2c 20 74 65 |t", app_|sig$, te|
|00004c20| 78 74 24 2c 20 61 65 5f | 63 6c 61 73 73 24 2c 20 |xt$, ae_|class$, |
|00004c30| 61 65 5f 69 64 24 0d 20 | 20 20 20 20 20 20 20 20 |ae_id$. | |
|00004c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3a | | :|
|00004c50| 27 20 73 65 6e 64 73 20 | 61 70 70 6c 65 45 76 65 |' sends |appleEve|
|00004c60| 6e 74 20 77 69 74 68 20 | 74 65 78 74 24 20 61 73 |nt with |text$ as|
|00004c70| 20 64 69 72 65 63 74 4f | 62 6a 65 63 74 0d 20 20 | directO|bject. |
|00004c80| 20 20 20 20 20 20 63 61 | 6c 6c 20 22 64 6f 73 63 | ca|ll "dosc|
|00004c90| 72 69 70 74 22 2c 22 4d | 4f 53 53 22 2c 20 75 72 |ript","M|OSS", ur|
|00004ca0| 6c 24 2c 20 22 47 55 52 | 4c 22 2c 20 22 47 55 52 |l$, "GUR|L", "GUR|
|00004cb0| 4c 22 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |L". | |
|00004cc0| 20 20 20 20 20 20 20 20 | 20 20 20 3a 27 20 73 65 | | :' se|
|00004cd0| 6e 64 73 20 61 20 67 65 | 74 20 55 52 4c 20 65 76 |nds a ge|t URL ev|
|00004ce0| 65 6e 74 20 74 6f 20 4e | 65 74 73 63 61 70 65 28 |ent to N|etscape(|
|00004cf0| 74 6d 29 0d 0d 20 20 20 | 20 20 20 20 20 63 61 6c |tm).. | cal|
|00004d00| 6c 20 22 61 70 70 6c 65 | 73 63 72 69 70 74 22 2c |l "apple|script",|
|00004d10| 20 73 63 72 69 70 74 24 | 20 20 3a 27 20 63 6f 6d | script$| :' com|
|00004d20| 70 69 6c 65 73 20 61 6e | 64 20 65 78 65 63 75 74 |piles an|d execut|
|00004d30| 65 73 20 61 20 73 63 72 | 69 70 74 2e 0d 20 20 20 |es a scr|ipt.. |
|00004d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004d50| 20 20 20 20 20 3a 27 20 | 73 63 72 69 70 74 24 20 | :' |script$ |
|00004d60| 63 61 6e 20 62 65 20 61 | 20 73 69 6e 67 6c 65 20 |can be a| single |
|00004d70| 73 74 72 69 6e 67 20 6f | 72 20 61 20 6c 65 6e 67 |string o|r a leng|
|00004d80| 74 68 79 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |thy. | |
|00004d90| 20 20 20 20 20 20 20 20 | 20 20 20 20 3a 27 20 28 | | :' (|
|00004da0| 62 6c 61 6e 6b 20 74 65 | 72 6d 69 6e 61 74 65 64 |blank te|rminated|
|00004db0| 29 20 73 74 72 69 6e 67 | 20 61 72 72 61 79 2e 0d |) string| array..|
|00004dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004dd0| 20 20 20 20 20 20 20 20 | 3a 27 20 2a 2a 20 72 65 | |:' ** re|
|00004de0| 71 75 69 72 65 73 20 41 | 70 70 6c 65 53 63 72 69 |quires A|ppleScri|
|00004df0| 70 74 20 65 78 74 65 6e | 73 69 6f 6e 20 2a 2a 0d |pt exten|sion **.|
|00004e00| 0d 2d 20 41 20 66 65 77 | 20 6f 64 64 62 61 6c 6c |.- A few| oddball|
|00004e10| 20 63 6f 6d 6d 61 6e 64 | 73 20 69 6e 63 6c 75 64 | command|s includ|
|00004e20| 65 64 20 69 6e 20 76 65 | 72 73 69 6f 6e 20 33 2e |ed in ve|rsion 3.|
|00004e30| 34 2e 78 20 6a 75 73 74 | 20 66 6f 72 20 66 75 6e |4.x just| for fun|
|00004e40| 3a 0d 0d 20 20 20 20 20 | 20 20 20 63 61 6c 6c 20 |:.. | call |
|00004e50| 22 66 66 74 5f 70 6f 6c | 61 72 22 2c 20 72 65 61 |"fft_pol|ar", rea|
|00004e60| 6c 28 30 29 2c 20 61 6d | 70 28 30 29 2c 20 70 68 |l(0), am|p(0), ph|
|00004e70| 61 73 65 28 30 29 20 2c | 20 73 69 7a 65 20 3a 27 |ase(0) ,| size :'|
|00004e80| 20 66 66 74 0d 20 20 20 | 20 20 20 20 20 63 61 6c | fft. | cal|
|00004e90| 6c 20 22 66 66 74 5f 69 | 6e 76 22 2c 20 20 20 61 |l "fft_i|nv", a|
|00004ea0| 6d 70 28 30 29 2c 20 70 | 68 61 73 65 28 30 29 2c |mp(0), p|hase(0),|
|00004eb0| 20 72 65 61 6c 28 30 29 | 20 2c 20 73 69 7a 65 20 | real(0)| , size |
|00004ec0| 3a 27 20 69 6e 76 65 72 | 73 65 0d 20 20 20 20 20 |:' inver|se. |
|00004ed0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ee0| 20 20 20 20 20 20 20 20 | 20 20 20 3a 27 20 74 68 | | :' th|
|00004ef0| 65 20 66 66 74 20 73 69 | 7a 65 20 6d 75 73 74 20 |e fft si|ze must |
|00004f00| 61 20 70 6f 77 65 72 20 | 6f 66 20 32 20 3a 20 32 |a power |of 2 : 2|
|00004f10| 5e 6e 0d 20 20 20 20 20 | 20 20 20 63 61 6c 6c 20 |^n. | call |
|00004f20| 22 6d 61 74 68 24 22 2c | 20 22 6d 75 6c 24 22 2c |"math$",| "mul$",|
|00004f30| 20 72 24 2c 20 22 31 32 | 33 34 35 36 37 38 39 30 | r$, "12|34567890|
|00004f40| 22 2c 20 22 39 38 37 36 | 35 34 33 32 31 30 22 0d |", "9876|543210".|
|00004f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 3a 27 20 32 | | :' 2|
|00004f60| 30 30 2b 20 64 69 67 69 | 74 20 73 74 72 69 6e 67 |00+ digi|t string|
|00004f70| 20 6d 61 74 68 20 28 61 | 64 64 24 2c 20 73 75 62 | math (a|dd$, sub|
|00004f80| 24 2c 20 6d 75 6c 24 2c | 20 64 69 76 24 2c 20 6d |$, mul$,| div$, m|
|00004f90| 6f 64 24 29 0d 0d 2d 20 | 41 70 70 6c 65 53 63 72 |od$)..- |AppleScr|
|00004fa0| 69 70 74 20 73 63 72 69 | 70 74 69 6e 67 2e 20 20 |ipt scri|pting. |
|00004fb0| 54 72 79 20 74 68 69 73 | 20 73 63 72 69 70 74 20 |Try this| script |
|00004fc0| 66 72 6f 6d 20 61 20 73 | 63 72 69 70 74 20 65 64 |from a s|cript ed|
|00004fd0| 69 74 6f 72 3a 0d 20 20 | 20 20 20 20 20 20 74 65 |itor:. | te|
|00004fe0| 6c 6c 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 22 |ll appli|cation "|
|00004ff0| 63 68 69 70 62 61 73 69 | 63 22 20 74 6f 20 44 6f |chipbasi|c" to Do|
|00005000| 53 63 72 69 70 74 20 22 | 65 76 61 6c 20 28 20 35 |Script "|eval ( 5|
|00005010| 20 2a 20 37 20 29 22 0d | 20 20 20 20 20 20 20 20 | * 7 )".| |
|00005020| 74 65 6c 6c 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |tell app|lication|
|00005030| 20 22 63 68 69 70 62 61 | 73 69 63 22 20 74 6f 20 | "chipba|sic" to |
|00005040| 44 6f 53 63 72 69 70 74 | 20 22 65 76 61 6c 20 64 |DoScript| "eval d|
|00005050| 61 74 65 24 22 0d 20 20 | 20 20 20 20 20 20 20 20 |ate$". | |
|00005060| 20 20 3a 27 20 65 76 61 | 6c 20 77 69 6c 6c 20 72 | :' eva|l will r|
|00005070| 65 74 75 72 6e 20 61 20 | 73 74 72 69 6e 67 20 72 |eturn a |string r|
|00005080| 65 73 75 6c 74 20 74 6f | 20 74 68 65 20 73 63 72 |esult to| the scr|
|00005090| 69 70 74 20 65 64 69 74 | 6f 72 2e 0d 20 20 20 20 |ipt edit|or.. |
|000050a0| 20 20 20 20 74 65 6c 6c | 20 61 70 70 6c 69 63 61 | tell| applica|
|000050b0| 74 69 6f 6e 20 22 63 68 | 69 70 62 61 73 69 63 22 |tion "ch|ipbasic"|
|000050c0| 20 74 6f 20 44 6f 53 63 | 72 69 70 74 20 22 70 72 | to DoSc|ript "pr|
|000050d0| 69 6e 74 20 32 32 20 2a | 20 37 22 0d 20 20 20 20 |int 22 *| 7". |
|000050e0| 20 20 20 20 74 65 6c 6c | 20 61 70 70 6c 69 63 61 | tell| applica|
|000050f0| 74 69 6f 6e 20 22 63 68 | 69 70 62 61 73 69 63 22 |tion "ch|ipbasic"|
|00005100| 20 74 6f 20 44 6f 53 63 | 72 69 70 74 20 22 73 61 | to DoSc|ript "sa|
|00005110| 79 20 27 68 65 6c 6c 6f | 27 22 0d 20 20 20 20 20 |y 'hello|'". |
|00005120| 20 20 20 20 20 20 20 3a | 27 20 54 65 6c 6c 73 20 | :|' Tells |
|00005130| 43 68 69 70 6d 75 6e 6b | 20 42 61 73 69 63 20 74 |Chipmunk| Basic t|
|00005140| 6f 20 65 78 65 63 75 74 | 65 73 20 61 20 73 74 61 |o execut|es a sta|
|00005150| 74 65 6d 65 6e 74 2e 0d | 20 20 20 20 20 20 0d 2d |tement..| .-|
|00005160| 20 41 20 66 65 77 20 65 | 78 70 65 72 69 6d 65 6e | A few e|xperimen|
|00005170| 74 61 6c 20 63 6f 6d 6d | 61 6e 64 73 20 74 68 61 |tal comm|ands tha|
|00005180| 74 20 6f 6e 6c 79 20 77 | 6f 72 6b 20 69 6e 20 74 |t only w|ork in t|
|00005190| 68 65 20 36 38 4b 20 4d | 61 63 20 76 65 72 73 69 |he 68K M|ac versi|
|000051a0| 6f 6e 3a 0d 20 20 20 20 | 20 20 20 20 69 70 61 64 |on:. | ipad|
|000051b0| 64 72 20 3d 20 6d 61 63 | 66 75 6e 63 74 69 6f 6e |dr = mac|function|
|000051c0| 28 22 64 6e 72 32 6e 75 | 6d 22 2c 20 64 6f 6d 61 |("dnr2nu|m", doma|
|000051d0| 69 6e 5f 6e 61 6d 65 24 | 29 0d 20 20 20 20 20 20 |in_name$|). |
|000051e0| 20 20 63 61 6c 6c 20 22 | 66 65 74 63 68 48 54 54 | call "|fetchHTT|
|000051f0| 50 22 2c 20 69 70 61 64 | 64 72 2c 20 68 74 74 70 |P", ipad|dr, http|
|00005200| 63 6d 64 24 2c 20 66 69 | 6c 65 6e 61 6d 65 24 0d |cmd$, fi|lename$.|
|00005210| 20 20 20 20 20 20 20 20 | 20 20 20 20 3a 27 20 4d | | :' M|
|00005220| 61 63 54 43 50 20 48 54 | 54 50 20 66 69 6c 65 20 |acTCP HT|TP file |
|00005230| 74 72 61 6e 73 66 65 72 | 2c 20 73 61 76 65 73 20 |transfer|, saves |
|00005240| 74 6f 20 6c 6f 63 61 6c | 20 66 69 6c 65 0d 20 20 |to local| file. |
|00005250| 20 20 20 20 20 20 20 20 | 20 20 3a 27 20 65 78 61 | | :' exa|
|00005260| 6d 70 6c 65 20 63 6f 6d | 6d 61 6e 64 3a 0d 20 20 |mple com|mand:. |
|00005270| 20 20 20 20 20 20 20 20 | 20 20 3a 27 20 68 74 74 | | :' htt|
|00005280| 70 63 6d 64 24 20 3d 20 | 22 47 45 54 20 2f 69 6e |pcmd$ = |"GET /in|
|00005290| 64 65 78 2e 68 74 6d 6c | 20 48 54 54 50 2f 31 2e |dex.html| HTTP/1.|
|000052a0| 30 22 2b 63 68 72 24 28 | 31 30 29 2b 63 68 72 24 |0"+chr$(|10)+chr$|
|000052b0| 28 31 30 29 0d 20 20 20 | 20 20 20 20 20 3a 27 20 |(10). | :' |
|000052c0| 53 74 72 69 70 20 6f 75 | 74 20 74 68 65 20 43 46 |Strip ou|t the CF|
|000052d0| 52 47 20 72 65 73 6f 75 | 72 63 65 20 66 72 6f 6d |RG resou|rce from|
|000052e0| 20 69 66 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 | if you |want to |
|000052f0| 6d 61 6b 65 20 61 20 0d | 20 20 20 20 20 20 20 20 |make a .| |
|00005300| 3a 27 20 20 66 61 74 20 | 76 65 72 73 69 6f 6e 20 |:' fat |version |
|00005310| 6f 66 20 63 62 61 73 20 | 69 6e 74 6f 20 61 20 36 |of cbas |into a 6|
|00005320| 38 4b 20 28 75 6e 61 63 | 63 65 6c 65 72 61 74 65 |8K (unac|celerate|
|00005330| 64 29 20 76 65 72 73 69 | 6f 6e 2e 0d 0d 2d 20 49 |d) versi|on...- I|
|00005340| 43 4e 23 2c 20 63 69 63 | 6e 2c 20 50 49 43 54 20 |CN#, cic|n, PICT |
|00005350| 26 20 42 43 4d 44 20 72 | 65 73 6f 75 72 63 65 73 |& BCMD r|esources|
|00005360| 20 6d 61 79 20 62 65 20 | 73 74 6f 72 65 64 20 74 | may be |stored t|
|00005370| 68 65 20 72 65 73 6f 75 | 72 63 65 20 66 6f 72 6b |he resou|rce fork|
|00005380| 20 6f 66 0d 20 20 20 20 | 20 20 20 20 61 6e 79 20 | of. | any |
|00005390| 66 69 6c 65 2c 20 6e 6f | 74 20 6a 75 73 74 20 74 |file, no|t just t|
|000053a0| 68 65 20 22 6d 75 6d 62 | 6c 65 2e 62 61 73 22 20 |he "mumb|le.bas" |
|000053b0| 70 72 6f 67 72 61 6d 20 | 66 69 6c 65 2e 20 20 55 |program |file. U|
|000053c0| 73 65 3a 0d 20 20 20 20 | 20 20 20 20 6f 70 65 6e |se:. | open|
|000053d0| 20 22 66 6f 6f 2e 72 73 | 72 63 22 20 66 6f 72 20 | "foo.rs|rc" for |
|000053e0| 64 61 74 61 20 69 6e 70 | 75 74 20 3a 20 72 65 6d |data inp|ut : rem|
|000053f0| 20 77 69 74 68 20 6e 6f | 20 22 61 73 22 20 74 6f | with no| "as" to|
|00005400| 6b 65 6e 2c 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ken,. | |
|00005410| 3a 27 20 74 68 69 73 20 | 6d 61 6b 65 73 20 74 68 |:' this |makes th|
|00005420| 65 20 66 69 6c 65 20 22 | 66 6f 6f 2e 72 73 72 63 |e file "|foo.rsrc|
|00005430| 22 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 72 65 |" the cu|rrent re|
|00005440| 73 6f 75 72 63 65 20 66 | 69 6c 65 0d 0d 2d 20 62 |source f|ile..- b|
|00005450| 69 67 66 6f 6e 74 20 6f | 70 74 69 6f 6e 73 20 61 |igfont o|ptions a|
|00005460| 72 65 20 73 74 6f 72 65 | 64 20 69 6e 20 74 68 65 |re store|d in the|
|00005470| 20 50 72 65 66 73 20 66 | 69 6c 65 20 28 65 64 69 | Prefs f|ile (edi|
|00005480| 74 20 77 2f 20 42 42 45 | 64 69 74 20 6f 72 20 65 |t w/ BBE|dit or e|
|00005490| 71 75 69 76 2e 29 0d 2d | 20 6d 61 78 69 6d 75 6d |quiv.).-| maximum|
|000054a0| 20 67 72 61 70 68 69 63 | 73 20 77 69 6e 64 6f 77 | graphic|s window|
|000054b0| 20 73 69 7a 65 20 69 73 | 20 61 6c 73 6f 20 73 74 | size is| also st|
|000054c0| 6f 72 65 64 20 69 6e 20 | 74 68 65 20 50 72 65 66 |ored in |the Pref|
|000054d0| 73 20 66 69 6c 65 2e 0d | 20 20 20 20 20 20 20 20 |s file..| |
|000054e0| 69 66 20 6d 65 6d 6f 72 | 79 20 69 73 20 6c 69 6d |if memor|y is lim|
|000054f0| 69 74 65 64 20 74 68 65 | 20 6d 61 78 20 73 69 7a |ited the| max siz|
|00005500| 65 20 69 73 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |e is aut|omatical|
|00005510| 6c 79 20 64 65 63 72 65 | 61 73 65 64 2e 0d 0d 2d |ly decre|ased...-|
|00005520| 2d 2d 0d 45 64 69 74 69 | 6e 67 20 65 78 74 65 6e |--.Editi|ng exten|
|00005530| 73 69 6f 6e 73 3a 0d 0d | 2d 20 46 6f 72 20 75 73 |sions:..|- For us|
|00005540| 65 72 73 20 6f 66 20 74 | 68 65 20 74 65 73 74 20 |ers of t|he test |
|00005550| 65 64 69 74 6f 72 20 42 | 42 45 64 69 74 20 4c 69 |editor B|BEdit Li|
|00005560| 74 65 20 33 2e 35 2c 20 | 49 27 76 65 20 69 6e 63 |te 3.5, |I've inc|
|00005570| 6c 75 64 65 64 20 61 6e | 20 42 42 45 64 69 74 0d |luded an| BBEdit.|
|00005580| 20 20 65 78 74 65 6e 73 | 69 6f 6e 2e 20 20 44 72 | extens|ion. Dr|
|00005590| 6f 70 20 69 74 20 69 6e | 74 6f 20 74 68 65 20 42 |op it in|to the B|
|000055a0| 42 45 64 69 74 20 45 78 | 74 65 6e 73 69 6f 6e 73 |BEdit Ex|tensions|
|000055b0| 20 66 6f 6c 64 65 72 2e | 20 20 59 6f 75 20 63 61 | folder.| You ca|
|000055c0| 6e 20 6e 6f 77 20 65 64 | 69 74 0d 20 20 79 6f 75 |n now ed|it. you|
|000055d0| 72 20 70 72 6f 67 72 61 | 6d 20 75 73 69 6e 67 20 |r progra|m using |
|000055e0| 42 42 45 64 69 74 2c 20 | 61 6e 64 2c 20 77 69 74 |BBEdit, |and, wit|
|000055f0| 68 20 61 20 42 42 45 69 | 74 20 6d 65 6e 75 20 73 |h a BBEi|t menu s|
|00005600| 65 6c 65 63 74 69 6f 6e | 2c 20 73 65 6e 64 20 69 |election|, send i|
|00005610| 74 20 74 6f 0d 20 20 43 | 68 69 70 6d 75 6e 6b 20 |t to. C|hipmunk |
|00005620| 42 61 73 69 63 20 74 6f | 20 62 65 20 6c 6f 61 64 |Basic to| be load|
|00005630| 20 61 6e 64 20 72 75 6e | 2e 0d 20 20 0d 20 20 42 | and run|.. . B|
|00005640| 75 67 3a 20 20 54 68 65 | 20 70 72 6f 67 72 61 6d |ug: The| program|
|00005650| 20 74 65 78 74 20 6d 75 | 73 74 20 62 65 20 6c 6f | text mu|st be lo|
|00005660| 6e 67 65 72 20 74 68 61 | 6e 20 33 32 20 63 68 61 |nger tha|n 32 cha|
|00005670| 72 61 63 74 65 72 73 20 | 66 6f 72 20 74 68 65 0d |racters |for the.|
|00005680| 20 20 42 42 45 64 69 74 | 20 22 72 75 6e 20 63 6f | BBEdit| "run co|
|00005690| 6e 74 65 6e 74 73 22 20 | 63 6f 6d 6d 61 6e 64 20 |ntents" |command |
|000056a0| 74 6f 20 77 6f 72 6b 2e | 0d 0d 2d 2d 2d 0d 4f 74 |to work.|..---.Ot|
|000056b0| 68 65 72 20 6e 6f 74 65 | 73 20 6f 72 20 42 75 67 |her note|s or Bug|
|000056c0| 73 3a 0d 0d 2d 20 50 72 | 6f 67 72 61 6d 73 20 77 |s:..- Pr|ograms w|
|000056d0| 69 74 68 6f 75 74 20 6c | 69 6e 65 20 6e 75 6d 62 |ithout l|ine numb|
|000056e0| 65 72 73 20 63 61 6e 20 | 62 65 20 6c 6f 61 64 65 |ers can |be loade|
|000056f0| 64 20 66 72 6f 6d 20 61 | 20 66 69 6c 65 3b 20 68 |d from a| file; h|
|00005700| 6f 77 65 76 65 72 0d 20 | 20 20 20 73 65 71 75 65 |owever. | seque|
|00005710| 6e 74 69 61 6c 20 6c 69 | 6e 65 20 6e 75 6d 62 65 |ntial li|ne numbe|
|00005720| 72 73 20 77 69 6c 6c 20 | 62 65 20 61 64 64 65 64 |rs will |be added|
|00005730| 2e 20 20 54 68 65 20 74 | 61 72 67 65 74 20 6f 66 |. The t|arget of|
|00005740| 20 61 20 47 4f 54 4f 20 | 63 61 6e 0d 20 20 20 20 | a GOTO |can. |
|00005750| 62 65 20 61 20 6c 61 62 | 65 6c 20 66 6f 6c 6c 6f |be a lab|el follo|
|00005760| 77 65 64 20 62 79 20 61 | 20 63 6f 6c 6f 6e 2e 20 |wed by a| colon. |
|00005770| 65 2e 67 2e 0d 20 20 20 | 20 20 20 20 20 66 6f 6f |e.g.. | foo|
|00005780| 3a 20 70 72 69 6e 74 20 | 78 20 3a 20 78 3d 78 2d |: print |x : x=x-|
|00005790| 31 20 3a 20 69 66 20 78 | 3e 30 20 74 68 65 6e 20 |1 : if x|>0 then |
|000057a0| 67 6f 74 6f 20 66 6f 6f | 3a 0d 2d 20 54 6f 20 73 |goto foo|:.- To s|
|000057b0| 61 76 65 20 74 6f 20 66 | 69 6c 65 20 77 69 74 68 |ave to f|ile with|
|000057c0| 6f 75 74 20 6c 69 6e 65 | 20 6e 75 6d 62 65 72 73 |out line| numbers|
|000057d0| 2c 20 74 72 79 3a 0d 09 | 73 61 76 65 20 66 69 6c |, try:..|save fil|
|000057e0| 65 6e 61 6d 65 24 2c 22 | 4e 4c 4e 22 20 20 20 20 |ename$,"|NLN" |
|000057f0| 20 20 20 20 3a 20 72 65 | 6d 20 2d 20 44 6f 6e 27 | : re|m - Don'|
|00005800| 74 20 75 73 65 20 22 67 | 6f 74 6f 20 3c 6e 75 6d |t use "g|oto <num|
|00005810| 62 65 72 3e 22 2e 0d 2d | 20 4f 74 68 65 72 20 72 |ber>"..-| Other r|
|00005820| 65 73 65 72 76 65 64 20 | 77 6f 72 64 73 20 28 64 |eserved |words (d|
|00005830| 6f 6e 27 74 20 75 73 65 | 20 74 68 65 73 65 21 29 |on't use| these!)|
|00005840| 20 3a 0d 20 20 20 20 20 | 20 20 20 6d 73 67 62 6f | :. | msgbo|
|00005850| 78 20 20 64 6f 20 6c 6f | 6f 70 20 75 6e 74 69 6c |x do lo|op until|
|00005860| 20 62 72 65 61 6b 20 20 | 66 75 6e 63 74 69 6f 6e | break |function|
|00005870| 0d 20 20 20 20 20 20 20 | 20 6d 65 74 68 6f 64 20 |. | method |
|00005880| 70 72 69 76 61 74 65 20 | 70 75 62 6c 69 63 20 6c |private |public l|
|00005890| 6f 63 61 6c 20 20 20 64 | 69 61 6c 6f 67 20 6d 65 |ocal d|ialog me|
|000058a0| 6d 73 74 61 74 28 29 0d | 20 20 20 20 20 20 20 20 |mstat().| |
|000058b0| 64 72 61 77 20 70 6c 61 | 79 20 20 62 6c 6f 61 64 |draw pla|y bload|
|000058c0| 20 62 73 61 76 65 20 6d | 69 6e 20 6d 61 78 0d 20 | bsave m|in max. |
|000058d0| 20 20 20 20 20 20 20 65 | 61 63 68 20 72 65 64 69 | e|ach redi|
|000058e0| 6d 20 72 65 73 75 6d 65 | 20 20 73 74 61 74 69 63 |m resume| static|
|000058f0| 20 20 6f 70 74 69 6f 6e | 20 64 65 67 72 65 65 73 | option| degrees|
|00005900| 20 72 61 64 69 61 6e 73 | 0d 20 20 20 20 20 20 20 | radians|. |
|00005910| 20 65 71 76 20 69 6d 70 | 20 6b 65 79 20 69 73 20 | eqv imp| key is |
|00005920| 65 61 63 68 20 73 65 74 | 20 77 69 64 74 68 20 73 |each set| width s|
|00005930| 77 61 70 0d 2d 20 46 6f | 72 20 74 68 65 20 6f 6c |wap.- Fo|r the ol|
|00005940| 64 20 68 69 67 68 20 70 | 72 65 63 65 64 65 6e 63 |d high p|recedenc|
|00005950| 65 20 4e 4f 54 20 6f 70 | 65 72 61 74 6f 72 2c 20 |e NOT op|erator, |
|00005960| 65 6e 74 65 72 3a 20 23 | 63 62 61 73 23 6e 6f 6e |enter: #|cbas#non|
|00005970| 5f 61 6e 73 69 5f 6e 6f | 74 0d 0d 2d 20 41 6c 6c |_ansi_no|t..- All|
|00005980| 20 69 6e 70 75 74 20 77 | 6f 72 6b 73 20 6c 69 6b | input w|orks lik|
|00005990| 65 20 74 68 65 20 4c 49 | 4e 45 20 49 4e 50 55 54 |e the LI|NE INPUT|
|000059a0| 20 73 74 61 74 65 6d 65 | 6e 74 20 6f 66 20 6f 74 | stateme|nt of ot|
|000059b0| 68 65 72 20 42 61 73 69 | 63 20 76 65 72 73 69 6f |her Basi|c versio|
|000059c0| 6e 73 2e 0d 2d 20 4c 69 | 6e 65 20 6e 75 6d 62 65 |ns..- Li|ne numbe|
|000059d0| 72 73 20 61 62 6f 76 65 | 20 39 39 39 39 39 39 39 |rs above| 9999999|
|000059e0| 39 39 20 77 69 6c 6c 20 | 6e 6f 74 20 6c 69 73 74 |99 will |not list|
|000059f0| 2e 0d 0d 2d 2d 2d 0d 49 | 6d 70 6f 72 74 61 6e 74 |...---.I|mportant|
|00005a00| 20 43 68 69 70 6d 75 6e | 6b 20 42 61 73 69 63 20 | Chipmun|k Basic |
|00005a10| 4c 61 6e 67 75 61 67 65 | 20 63 68 61 6e 67 65 73 |Language| changes|
|00005a20| 3a 0d 20 20 33 2e 33 2e | 37 3a 20 20 74 79 70 65 |:. 3.3.|7: type|
|00005a30| 20 26 20 63 6c 61 73 73 | 20 76 61 72 73 20 6e 6f | & class| vars no|
|00005a40| 77 20 72 65 71 75 69 72 | 65 20 22 64 69 6d 20 2e |w requir|e "dim .|
|00005a50| 2e 2e 20 61 73 20 6e 65 | 77 20 2e 2e 2e 22 20 73 |.. as ne|w ..." s|
|00005a60| 79 6e 74 61 78 2e 0d 20 | 20 33 2e 34 2e 37 3a 20 |yntax.. | 3.4.7: |
|00005a70| 20 6c 6f 77 65 72 65 64 | 20 4e 4f 54 20 6f 70 65 | lowered| NOT ope|
|00005a80| 72 61 74 6f 72 20 70 72 | 65 63 65 64 65 6e 63 65 |rator pr|ecedence|
|00005a90| 20 74 6f 20 6d 61 74 63 | 68 20 41 4e 53 49 20 73 | to matc|h ANSI s|
|00005aa0| 74 61 6e 64 61 72 64 2e | 0d 20 20 20 20 20 20 20 |tandard.|. |
|00005ab0| 20 20 20 4f 4e 2d 47 4f | 54 4f 20 6e 6f 20 6c 6f | ON-GO|TO no lo|
|00005ac0| 6e 67 65 72 20 63 68 65 | 63 6b 73 20 62 6f 75 6e |nger che|cks boun|
|00005ad0| 64 73 2e 0d 0d 52 65 63 | 65 6e 74 20 42 75 67 20 |ds...Rec|ent Bug |
|00005ae0| 66 69 78 65 73 3a 0d 20 | 20 33 2e 33 2e 32 3a 20 |fixes:. | 3.3.2: |
|00005af0| 66 69 78 65 64 20 73 70 | 72 69 74 65 20 74 75 72 |fixed sp|rite tur|
|00005b00| 6e 20 64 69 72 65 63 74 | 69 6f 6e 20 62 75 67 0d |n direct|ion bug.|
|00005b10| 20 20 33 2e 33 2e 35 3a | 20 66 69 78 65 64 20 69 | 3.3.5:| fixed i|
|00005b20| 6e 74 65 67 65 72 20 72 | 6f 75 6e 64 69 6e 67 0d |nteger r|ounding.|
|00005b30| 20 20 33 2e 33 2e 37 3a | 20 66 69 78 65 64 20 61 | 3.3.7:| fixed a|
|00005b40| 73 73 69 67 6e 6d 65 6e | 74 20 74 6f 20 76 61 72 |ssignmen|t to var|
|00005b50| 69 61 62 6c 65 20 22 74 | 68 69 73 22 20 69 6e 20 |iable "t|his" in |
|00005b60| 6f 62 6a 65 63 74 20 6d | 65 74 68 6f 64 73 20 66 |object m|ethods f|
|00005b70| 69 78 65 64 0d 20 20 33 | 2e 34 2e 30 3a 20 66 69 |ixed. 3|.4.0: fi|
|00005b80| 78 65 64 20 64 65 66 61 | 75 6c 74 20 76 6f 69 63 |xed defa|ult voic|
|00005b90| 65 20 69 6e 20 73 61 79 | 2c 20 69 6e 70 75 74 20 |e in say|, input |
|00005ba0| 65 6f 66 20 62 75 67 2c | 20 70 72 65 66 20 66 69 |eof bug,| pref fi|
|00005bb0| 6c 65 20 62 75 67 0d 20 | 20 33 2e 34 2e 32 3a 20 |le bug. | 3.4.2: |
|00005bc0| 66 69 78 65 64 20 68 65 | 78 24 28 29 20 6f 66 20 |fixed he|x$() of |
|00005bd0| 6e 65 67 61 74 69 76 65 | 20 6e 75 6d 62 65 72 73 |negative| numbers|
|00005be0| 0d 20 20 33 2e 34 2e 34 | 3a 20 66 69 78 65 64 20 |. 3.4.4|: fixed |
|00005bf0| 70 75 62 6c 69 63 20 70 | 72 69 76 61 74 65 20 64 |public p|rivate d|
|00005c00| 65 66 61 75 6c 74 0d 20 | 20 33 2e 34 2e 35 3a 20 |efault. | 3.4.5: |
|00005c10| 66 69 78 65 64 20 6d 6f | 76 65 74 6f 20 26 20 62 |fixed mo|veto & b|
|00005c20| 75 74 74 6f 6e 20 63 6c | 65 61 72 0d 20 20 33 2e |utton cl|ear. 3.|
|00005c30| 34 2e 37 3a 20 66 69 78 | 65 64 20 66 69 78 65 64 |4.7: fix|ed fixed|
|00005c40| 20 6e 65 73 74 69 6e 67 | 20 6f 66 20 69 66 2d 74 | nesting| of if-t|
|00005c50| 68 65 6e 2d 65 6c 73 65 | 0d 20 20 33 2e 34 2e 38 |hen-else|. 3.4.8|
|00005c60| 3a 20 66 69 78 65 64 20 | 6e 65 73 74 69 6e 67 20 |: fixed |nesting |
|00005c70| 6f 66 20 73 65 6c 65 63 | 74 2d 63 61 73 65 0d 20 |of selec|t-case. |
|00005c80| 20 0d 50 6c 65 61 73 65 | 20 73 65 6e 64 20 62 75 | .Please| send bu|
|00005c90| 67 20 72 65 70 6f 72 74 | 73 20 74 6f 20 20 72 68 |g report|s to rh|
|00005ca0| 6e 40 6e 69 63 68 6f 6c | 73 6f 6e 2e 63 6f 6d 0d |n@nichol|son.com.|
|00005cb0| 0d 2d 2d 2d 0d 54 68 61 | 6e 6b 73 20 74 6f 3a 0d |.---.Tha|nks to:.|
|00005cc0| 20 2d 20 44 61 76 65 20 | 47 69 6c 6c 65 73 70 69 | - Dave |Gillespi|
|00005cd0| 65 20 66 6f 72 20 77 72 | 69 74 69 6e 67 20 74 68 |e for wr|iting th|
|00005ce0| 65 20 6f 72 69 67 69 6e | 61 6c 20 50 61 73 63 61 |e origin|al Pasca|
|00005cf0| 6c 20 76 65 72 73 69 6f | 6e 20 6f 66 20 74 68 69 |l versio|n of thi|
|00005d00| 73 20 42 61 73 69 63 3b | 0d 20 2d 20 44 61 76 65 |s Basic;|. - Dave|
|00005d10| 20 42 65 74 7a 20 66 6f | 72 20 69 64 65 61 73 20 | Betz fo|r ideas |
|00005d20| 66 72 6f 6d 20 74 68 65 | 20 6f 72 69 67 69 6e 61 |from the| origina|
|00005d30| 6c 20 58 4c 69 73 70 20 | 31 2e 36 20 4d 61 63 20 |l XLisp |1.6 Mac |
|00005d40| 70 6f 72 74 3b 0d 20 2d | 20 6d 61 6e 79 20 66 6f |port;. -| many fo|
|00005d50| 6c 6b 73 20 66 72 6f 6d | 20 41 70 70 6c 65 20 44 |lks from| Apple D|
|00005d60| 54 53 2c 20 4d 65 74 72 | 6f 77 65 72 6b 73 2c 20 |TS, Metr|owerks, |
|00005d70| 63 2e 73 2e 6d 2e 70 2c | 20 65 74 63 2e 3b 0d 20 |c.s.m.p,| etc.;. |
|00005d80| 2d 20 4a 6f 68 6e 20 4e | 6f 72 73 74 61 64 20 66 |- John N|orstad f|
|00005d90| 6f 72 20 6d 61 6b 69 6e | 67 20 61 76 61 69 6c 61 |or makin|g availa|
|00005da0| 62 6c 65 20 74 68 65 20 | 4e 65 77 73 77 61 74 63 |ble the |Newswatc|
|00005db0| 68 65 72 20 54 43 50 20 | 73 6f 75 72 63 65 20 63 |her TCP |source c|
|00005dc0| 6f 64 65 3b 0d 20 2d 20 | 4a 69 6d 20 53 74 6f 75 |ode;. - |Jim Stou|
|00005dd0| 74 20 66 6f 72 20 6d 61 | 6b 69 6e 67 20 61 76 61 |t for ma|king ava|
|00005de0| 69 6c 61 62 6c 65 20 22 | 4a 69 6d 27 73 20 43 44 |ilable "|Jim's CD|
|00005df0| 45 46 73 22 20 77 69 74 | 68 20 73 6f 75 72 63 65 |EFs" wit|h source|
|00005e00| 20 63 6f 64 65 3b 0d 20 | 2d 20 52 69 63 68 20 53 | code;. |- Rich S|
|00005e10| 65 69 67 61 6c 20 66 6f | 72 20 6d 61 6b 69 6e 67 |eigal fo|r making|
|00005e20| 20 42 42 45 64 69 74 20 | 4c 69 74 65 20 65 78 74 | BBEdit |Lite ext|
|00005e30| 65 6e 64 61 62 6c 65 3b | 0d 20 2d 20 54 68 6f 6d |endable;|. - Thom|
|00005e40| 61 73 20 46 65 72 72 65 | 6c 6c 20 66 6f 72 20 63 |as Ferre|ll for c|
|00005e50| 6f 6e 74 72 69 62 75 74 | 69 6e 67 20 61 20 74 75 |ontribut|ing a tu|
|00005e60| 74 6f 72 69 61 6c 20 66 | 6f 72 20 74 68 65 20 77 |torial f|or the w|
|00005e70| 65 62 20 70 61 67 65 3b | 0d 20 2d 20 74 68 65 20 |eb page;|. - the |
|00005e80| 6d 61 6e 79 20 70 65 6f | 70 6c 65 20 77 68 6f 20 |many peo|ple who |
|00005e90| 77 68 6f 20 68 61 76 65 | 20 73 65 6e 74 20 6d 65 |who have| sent me|
|00005ea0| 20 70 6f 6c 69 74 65 20 | 64 65 74 61 69 6c 65 64 | polite |detailed|
|00005eb0| 20 62 75 67 20 72 65 70 | 6f 72 74 73 2e 0d 20 0d | bug rep|orts.. .|
|00005ec0| 2d 2d 2d 0d 41 20 20 73 | 61 6d 70 6c 65 20 70 72 |---.A s|ample pr|
|00005ed0| 6f 67 72 61 6d 3a 0d 0d | 2d 2d 2d 20 63 75 74 20 |ogram:..|--- cut |
|00005ee0| 68 65 72 65 20 2d 2d 2d | 0d 31 20 72 65 6d 20 22 |here ---|.1 rem "|
|00005ef0| 73 69 65 76 65 2e 62 61 | 73 22 20 2c 20 61 20 70 |sieve.ba|s" , a p|
|00005f00| 72 69 6d 65 20 6e 75 6d | 62 65 72 20 73 69 65 76 |rime num|ber siev|
|00005f10| 65 20 62 65 6e 63 68 6d | 61 72 6b 0d 32 20 74 20 |e benchm|ark.2 t |
|00005f20| 3d 20 74 69 6d 65 72 0d | 33 20 64 69 6d 20 66 28 |= timer.|3 dim f(|
|00005f30| 38 31 39 34 29 0d 34 20 | 66 6f 72 20 69 20 3d 20 |8194).4 |for i = |
|00005f40| 30 20 74 6f 20 38 31 39 | 31 20 3a 20 66 28 69 29 |0 to 819|1 : f(i)|
|00005f50| 20 3d 20 31 20 3a 20 6e | 65 78 74 20 69 0d 35 20 | = 1 : n|ext i.5 |
|00005f60| 73 20 3d 20 38 31 39 31 | 0d 36 20 66 6f 72 20 69 |s = 8191|.6 for i|
|00005f70| 20 3d 20 30 20 74 6f 20 | 73 0d 37 20 20 20 69 66 | = 0 to |s.7 if|
|00005f80| 20 66 28 69 29 20 3d 20 | 30 20 74 68 65 6e 20 67 | f(i) = |0 then g|
|00005f90| 6f 74 6f 20 31 31 0d 38 | 20 20 20 70 20 3d 20 69 |oto 11.8| p = i|
|00005fa0| 2b 69 2b 33 0d 39 20 20 | 20 66 6f 72 20 6b 20 3d |+i+3.9 | for k =|
|00005fb0| 20 69 2b 70 20 74 6f 20 | 73 20 73 74 65 70 20 70 | i+p to |s step p|
|00005fc0| 20 3a 20 66 28 6b 29 20 | 3d 20 30 20 3a 20 6e 65 | : f(k) |= 0 : ne|
|00005fd0| 78 74 20 6b 0d 31 30 20 | 20 20 63 20 3d 20 63 2b |xt k.10 | c = c+|
|00005fe0| 31 0d 31 31 20 6e 65 78 | 74 20 69 0d 31 32 20 70 |1.11 nex|t i.12 p|
|00005ff0| 72 69 6e 74 20 63 3b 22 | 20 70 72 69 6d 65 73 20 |rint c;"| primes |
|00006000| 66 6f 75 6e 64 20 69 6e | 20 22 3b 0d 31 33 20 74 |found in| ";.13 t|
|00006010| 20 3d 20 74 69 6d 65 72 | 2d 74 0d 31 34 20 70 72 | = timer|-t.14 pr|
|00006020| 69 6e 74 20 74 3b 22 20 | 73 65 63 6f 6e 64 73 22 |int t;" |seconds"|
|00006030| 0d 31 35 20 65 6e 64 0d | 2d 2d 2d 20 63 75 74 20 |.15 end.|--- cut |
|00006040| 68 65 72 65 20 2d 2d 2d | 0d 2a 2f 0d 00 00 00 00 |here ---|.*/.....|
|00006050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006080| 00 00 01 00 00 00 01 22 | 00 00 00 22 00 00 00 46 |......."|..."...F|
|00006090| 34 35 20 69 6e 2c 20 69 | 6e 74 65 72 70 32 6e 75 |45 in, i|nterp2nu|
|000060a0| 6d 2c 20 73 71 2c 20 62 | 75 72 67 65 72 2c 20 63 |m, sq, b|urger, c|
|000060b0| 18 63 68 69 70 6d 75 6e | 6b 2d 62 61 73 69 63 20 |.chipmun|k-basic |
|000060c0| 71 75 69 63 6b 2d 72 65 | 66 63 02 00 00 00 50 61 |quick-re|fc....Pa|
|000060d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000060e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060f0| 00 00 ae 78 1a e8 00 00 | 00 00 00 00 01 68 6b 2c |...x....|.....hk,|
|00006100| 20 68 77 64 20 63 68 6b | 2c 20 73 77 69 6d 20 31 | hwd chk|, swim 1|
|00006110| 36 2b 34 2c 20 75 6e 6f | 27 73 2c 20 6e 61 70 0d |6+4, uno|'s, nap.|
|00006120| 73 75 6e 20 37 2f 31 36 | 20 6d 61 72 6b 2d 3e 62 |sun 7/16| mark->b|
|00006130| 6d 20 63 68 2c 20 63 6f | 79 6f 74 65 20 68 69 6c |m ch, co|yote hil|
|00006140| 6c 73 20 70 61 72 6b 2c | 20 6c 75 6e 63 68 2c 20 |ls park,| lunch, |
|00006150| 73 6c 6f 74 20 63 61 72 | 73 2c 20 72 69 70 6f 6e |slot car|s, ripon|
|00006160| 20 77 2f 63 61 72 6c 61 | 0d 6d 6f 6e 20 37 2f 31 | w/carla|.mon 7/1|
|00006170| 37 20 38 61 20 69 6e 2c | 20 77 61 6c 6b 20 32 30 |7 8a in,| walk 20|
|00006180| 00 00 00 04 00 01 00 01 | 00 00 00 16 00 01 00 00 |........|........|
|00006190| 00 00 00 10 00 0c 00 01 | 00 00 00 0c 00 00 00 00 |........|........|
|000061a0| 00 00 00 00 01 00 00 00 | 01 22 00 00 00 22 00 00 |........|."..."..|
|000061b0| 00 46 00 d3 50 20 10 e6 | 00 00 00 1c 00 46 00 01 |.F..P ..|.....F..|
|000061c0| 4d 57 42 42 00 00 00 12 | 73 74 79 6c 00 00 00 1e |MWBB....|styl....|
|000061d0| 03 f0 ff ff 00 00 00 00 | 00 00 00 00 00 80 ff ff |........|........|
|000061e0| 00 00 00 08 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+